$DYNAMIC
- Source: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgMetaDynamic
- Last revised: 2016-02-10
Metacommand to change the way arrays are allocated
Syntax
'$Dynamic
or
rem $DynamicDescription
'$Dynamic is a metacommand that specifies that any following array declarations are variable-length, whether they are declared with constant subscript ranges or not. This remains in effect for the rest of the module in which '$Dynamic is used, and can be overridden with '$Static. It is equivalent to the Option Dynamic statement.
Examples
start GeSHi
vb
' compile with -lang fblite or qb
#lang "fblite"
'$DYNAMIC
Dim a(100)
'......
ReDim a(200)end GeSHi
Dialect Differences
- Only available in the -lang fblite and -lang qb dialects.
Differences from QB
- When used inside comments it must be the first token
See also
$StaticDimRedimEraseOption Dynamic
Back to DocToc