Difference between revisions of "DEFINE"

From QB64 Wiki
Jump to navigation Jump to search
(Created page with '_DEFINE lets you define a range of variables according to their first character as a datatype. ''Syntax:'' _DEFINE startletter-endletter AS datatype datatype can be any of…')
 
Line 1: Line 1:
 
_DEFINE lets you define a range of variables according to their first character as a datatype.
 
_DEFINE lets you define a range of variables according to their first character as a datatype.
 +
  
 
''Syntax:'' _DEFINE startletter-endletter [[AS]] datatype
 
''Syntax:'' _DEFINE startletter-endletter [[AS]] datatype

Revision as of 21:47, 27 September 2009

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


Syntax: _DEFINE startletter-endletter AS datatype


datatype can be any of the following: INTEGER, SINGLE, DOUBLE, LONG, STRING, _BIT, _BYTE, _INTEGER64, _FLOAT


_BIT, _BYTE, _INTEGER64, INTEGER and LONG can also have the prefix _UNSIGNED


Example: _DEFINE A-Z AS UNSIGNED INTEGER


See also: DEFSTR, DEFLNG, DEFINT, DEFSNG, DEFDBL, _UNSIGNED


Navigation:

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage