# Difference between revisions of "DEFINE"

Jump to navigation
Jump to search

imported>Clippy m |
imported>Clippy m |
||

Line 5: | Line 5: | ||

− | * | + | * Variable start letter range is in the form firstletter-endingletter (like A-C) or just a single letter. |

* Datatypes: [[INTEGER]], [[SINGLE]], [[DOUBLE]], [[LONG]], [[STRING]], [[_BIT]], [[_BYTE]], [[_INTEGER64]], [[_FLOAT]] | * Datatypes: [[INTEGER]], [[SINGLE]], [[DOUBLE]], [[LONG]], [[STRING]], [[_BIT]], [[_BYTE]], [[_INTEGER64]], [[_FLOAT]] | ||

* Can also use the [[_UNSIGNED]] definition for positive numerical values only. | * Can also use the [[_UNSIGNED]] definition for positive numerical values only. |

## Revision as of 00:57, 4 October 2009

_DEFINE lets you define a range of variables according to their first character as a datatype.

*Syntax:* _DEFINE range or letter[, range2 or letter2[, range3 or letter3[, ...]]] AS [ _UNSIGNED ] datatype

- Variable start letter range is in the form firstletter-endingletter (like A-C) or just a single letter.
- Datatypes: INTEGER, SINGLE, DOUBLE, LONG, STRING, _BIT, _BYTE, _INTEGER64, _FLOAT
- Can also use the _UNSIGNED definition for positive numerical values only.

*Example:*

*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.

*See also:* DIM, DEFSTR, DEFLNG, DEFINT, DEFSNG, DEFDBL, _UNSIGNED, ABS, SGN

*Referance:* Mathematical Operations