Revision [15518]

This is an old revision of KeyPgOptiondynamic made by PaulRobinson on 2011-11-25 03:11:22.

 

OPTION DYNAMIC


Specifies variable-length array declarations

Syntax:
Option Dynamic

Description:
Option Dynamic is a statement 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 Option Dynamic is used, and can be overridden with KeyPgOptionstatic Option Static. It is equivalent to KeyPgMetaDynamic '$Dynamic.

Examples:
'' Compile with "-lang fblite" compiler switch

#lang "fblite"

Dim foo(99) As Integer      ' declares a fixed-length array

Option Dynamic

Dim bar(99) As Integer      ' declares a variable-length array
' ...
ReDim bar(199) As Integer   ' resize the array

Dialect Differences:
Differences from QB:
See also:
Back to Array Functions
Back to Compiler Switches
Back to Preprocessor
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode