Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Type-Declaration Suffixes
◄Simple Variables► ◄Variables► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Type-Declaration Suffixes
Append one of the following type-declaration suffixes to the variable name:
%, &, !, #, @, $
The dollar sign ($) is the type-declaration character for string variables.
You can assign a string constant of up to 32,767 characters to a string
variable.
Numeric-variable names can declare integer values (denoted by the % suffix),
long-integer values (denoted by the & suffix), single-precision values
(denoted by the ! suffix), double-precision values (denoted by the # suffix),
or currency values (denoted by the @ suffix).
Single-precision is the default for variables without a type suffix.
There is no type-declaration character for a user-defined type.
See Also ◄BASIC Data Types►
◄Elementary Data Types - Numeric►