UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
Related Command UniData BASICTYPE – For information, see the UniData Commands Reference. 1-29 UniBasic Commands Reference
$DEFINE Syntax $DEFINE var Description The UniBasic $DEFINE command defines a control variable you can use later to direct compilation. Tip: Keep $DEFINE statements in a separate INCLUDE file to facilitate recompiling programs with different definitions. Example In the following example, SMALL is defined when the program segment is compiled, and UniData defines array1 as a 10-element array initialized with 0: $DEFINE SMALL $IFDEF SMALL DIM array1(10) MAT array1 = 0 $ENDIF Related Commands UniBasic $UNDEFINE, EQU $DEFINE 1-30
- Page 1 and 2: C:\Program Files\Adobe\FrameMaker8\
- Page 3 and 4: The above trademarks are property o
- Page 5 and 6: C:\Program Files\Adobe\FrameMaker8\
- Page 7 and 8: C:\Program Files\Adobe\FrameMaker8\
- Page 9 and 10: C:\Program Files\Adobe\FrameMaker8\
- Page 11 and 12: C:\Program Files\Adobe\FrameMaker8\
- Page 13 and 14: C:\Program Files\Adobe\FrameMaker8\
- Page 15 and 16: TRIMB . . . . . . . . . . . . . . .
- Page 17 and 18: UniBasic Commands and Functions Thi
- Page 19 and 20: ! ! is a synonym for the * and REM
- Page 21 and 22: #< #< is a synonym for the GE relat
- Page 23: $BASICTYPE Syntax $BASICTYPE "param
- Page 27 and 28: In the next example, when you compi
- Page 29 and 30: Example In the following example, t
- Page 31 and 32: Parameters The following table desc
- Page 33 and 34: $UNDEFINE Syntax $UNDEFINE var Desc
- Page 35 and 36: * Syntax expr * expr Synonyms !, RE
- Page 37 and 38: *= Syntax var *= expr Description T
- Page 39 and 40: += Syntax var += expr Description T
- Page 41 and 42: -= Syntax var -= expr Description T
- Page 43 and 44: = Syntax var /= expr Description Th
- Page 45 and 46: ^ Syntax expr1^expr2 Synonym ** Des
- Page 47: < is a synonym for the LT (less tha
- Page 50 and 51: = 1-55 UniBasic Commands Reference
- Page 52 and 53: =< 1-57 UniBasic Commands Reference
- Page 54 and 55: 1-59 UniBasic Commands Reference >
- Page 56 and 57: @ Syntax @(col.expr [,row.expr]) @(
- Page 58 and 59: 1-63 UniBasic Commands Reference Op
- Page 60 and 61: Examples In the following example,
- Page 62 and 63: [] Syntax 1-67 UniBasic Commands Re
- Page 64 and 65: {} {} is a synonym for the CALCULAT
- Page 66 and 67: Note: You can use the ECL ON.ABORT
- Page 68 and 69: ABS Syntax ABS(expr) Description Th
- Page 70 and 71: Parameter Description 1-76 UniBasic
- Page 72 and 73: ACTIVATEKEY Syntax ACTIVATEKEY , [
$DEFINE<br />
Syntax<br />
$DEFINE var<br />
Description<br />
The <strong>UniBasic</strong> $DEFINE command defines a control variable you can use later to<br />
direct compilation.<br />
Tip: Keep $DEFINE statements in a separate INCLUDE file to facilitate recompiling<br />
programs with different definitions.<br />
Example<br />
In the following example, SMALL is defined when the program segment is<br />
compiled, and UniData defines array1 as a 10-element array initialized with 0:<br />
$DEFINE SMALL<br />
$IFDEF SMALL<br />
DIM array1(10)<br />
MAT array1 = 0<br />
$ENDIF<br />
Related <strong>Commands</strong><br />
<strong>UniBasic</strong><br />
$UNDEFINE, EQU<br />
$DEFINE 1-30