Visual BASIC Compatibility
The Scripter BASIC programming language is compatible with the Visual BASIC for Applications language (VBA). Scripts that run in Scripter work in a VBA environment with few or no modifications. Scripter programs also work under Microsoft Visual BASIC. Unlike most Visual BASIC programs, however, Scripter programs are not event-driven. Scripter programs are procedural. They start with the first statement of the Main procedure, and end when the Main procedure ends.
VBA to Scripter
Some statements available in VBA are not supported in Scripter BASIC:
-
The VBA Collection object
-
The VBA Clipboard object
-
GoSub
-
On...GoSub
-
On...Goto
-
GoSub…Return
-
All Financial functions
-
Resume at current line
-
Erl
-
Option Compare
-
Conditional compilation
-
With Events
-
LinkExecute
-
LinkPoke
-
LinkRequest
-
LinkSend
-
Line numbers
-
LoadPicture
-
Multiple statements on one line (separated by ":")
Scripter to VBA
Conversely, some features of the Scripter BASIC language are not supported by VBA. Do not use the following features if you want to transfer your scripts from Scripter into VBA:
-
Clipboard function
-
CallersLine
-
User dialogs
-
PortInt
-
MacroRunThis
-
MacroDir
-
Wait instruction
-
MacroRun
-
DDEExecute
-
DDEPoke
-
DDERequest
-
DDEInitiate
-
DDETerminateAll
-
DDETerminate