Difference between revisions of "DEFINE"
|Line 2:||Line 2:|
''Syntax:'' _DEFINE range or letter[, range2 or letter2[, range3 or letter3[, ...]]] [[AS]] datatype
''Syntax:'' _DEFINE range or letter[, range2 or letter2[, range3 or letter3[, ...]]] [[AS] ] datatype
Revision as of 23:13, 2 October 2009
_DEFINE lets you define a range of variables according to their first character as a datatype.
- Range is in the form firstletter-endingletter (like A-C) or just define a single letter as a datatype.
- Datatypes: INTEGER, SINGLE, DOUBLE, LONG, STRING, _BIT, _BYTE, _INTEGER64, _FLOAT
- Can also use the prefix _UNSIGNED for positive numerical values only.
Explanation: Variables that start with the letters A, B, C or F will now be defined as unsigned integers. Unsigned integers can only use positive values while ordinary integers can also use negative values.
Referance: Mathematical Operations