SmallBASIC GuideThe language | Programming Tips | Commands | System | Graphics & Sound | Miscellaneous | File system | Mathematics | 2D Algebra | Strings | Console | Glossary |
Constants and Variables
- All user variables (include arrays) are 'Variant'. That means the data-type is invisible to user.
- User-defined data types are not allowed.
- Arrays are always dynamic, even if you had declared their size, with dynamic size and type of elements.
However, SmallBASIC uses, internally, 4 data-types
- Integer (32bit)
- Real (64bit)
- String (<32KB on 16bit / 2GB on 32bit)
- Array (~2970 elements on 16bit / ~50M elements on 32bit)
Conversions between those types are performed internally. In any case there are functions for the user to do it manually.
Variable names
About the dollar-symbol
Integers
Reals
Strings
Constants
[Prev] [Next]