|The following sections will describe how to convert statements that have no direct equivalent in LB.
Defines forward declarations of procedures. These are not needed in LB.
Declares global variables.
DIM SHARED variablelist
|Global variablelist |
Defines a simple function.
DEF FNname(parameterlist) = expression
FNname = expression
While many DOS BASICs require DEF FN's to be placed near the beginning of a program, LB functions must be placed near the end.
Frees the memory allocated to an array.
ON...GOSUB and ON...GOTO
Causes execution to jump to one of a list of line numbers/labels based on the value of an expression.
ON expression GOSUB label1, label2, ...
ON expression GOTO label1, label2, ...
|Select Case expression
' GoSub/GoTo [label1] or just inline code here
' Ditto for [label2]