Default Variable Typing
In PowerBASIC/DOS
and MSBASIC, all variables without a type-specifier
(%, !, &, etc.) default to Single-precision.
In Visual Basic, all untyped variables default to Variants.
In PB/CC,
numeric variables
without a type specifier are not allowed unless you specifically tell
the compiler the default type using the DEF
statement. For example, to mimic the Single-precision default of
PB/DOS, simply add a DEFSNG
statement to the top of your code:
DEFSNG A-Z
See Also
Upgrading To PBCC
Variables
Variable Scope
THREADED
variables
LOCAL,
GLOBAL and STATIC considerations