Difference between revisions of "$DYNAMIC"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
imported>Clippy
Line 10: Line 10:
 
* Dynamic arrays can be resized using [[REDIM]]. The array's type cannot be changed.
 
* Dynamic arrays can be resized using [[REDIM]]. The array's type cannot be changed.
 
* All data in the array will be lost when redimensioned.
 
* All data in the array will be lost when redimensioned.
* Dynamic arrays can be resized by the program user's input.
+
* Dynamic arrays can also be resized by the program user's input if desired.
  
  
  
 
''See also:'' [[$STATIC]]
 
''See also:'' [[$STATIC]]

Revision as of 11:52, 30 August 2009

The $DYNAMIC Metacommand allows the creation of dynamic(changeable) arrays.


Syntax: REM $DYNAMIC


  • Metacommands require a REM or apostrophy (') before them.
  • Metacommands should be placed at the program start in the main module.
  • Dynamic arrays can be resized using REDIM. The array's type cannot be changed.
  • All data in the array will be lost when redimensioned.
  • Dynamic arrays can also be resized by the program user's input if desired.


See also: $STATIC