Revision [15520]
This is an old revision of KeyPgMetaStatic made by PaulRobinson on 2011-11-25 03:18:07.
$STATIC
Metacommand to change the way arrays are allocated
Syntax:
Description:
'$Static is a metacommand that overrides the behavior of KeyPgMetaDynamic $Dynamic, that is, arrays declared with constant subscript ranges are fixed-length. This remains in effect for the rest of the module in which '$Static is used, and can be overridden with KeyPgMetaDynamic $Dynamic. It is equivalent to the KeyPgOptionstatic Option Static statement.
Examples:
' compile with -lang fblite or qb
#lang "fblite"
'$dynamic
Dim a(100) '<<this array will be variable-length
'$static
Dim b(100) '<<this array will be fixed-length
#lang "fblite"
'$dynamic
Dim a(100) '<<this array will be variable-length
'$static
Dim b(100) '<<this array will be fixed-length
Dialect Differences:
- Only available in the CompilerOptlang -lang fblite and CompilerOptlang -lang qb dialects.
Differences from QB:
- When used inside comments it must be the first token
See also:
- KeyPgMetaDynamic $Dynamic
- KeyPgDim Dim
- KeyPgErase Erase
- KeyPgRedim Redim
- KeyPgOptiondynamic Option Dynamic
- KeyPgOptionstatic Option Static
Back to Array Functions
Back to Compiler Switches
Back to Preprocessor