2. Language Elements : Variables : Dynamic Array Variables : How You Can Declare Dynamic Array Variables
 
Share this page                  
How You Can Declare Dynamic Array Variables
To declare an array variable, specify any system class or user class for the objects associated with the variable. The syntax is:
name = array of class [with] default null]
The following code is an example:
emparray = array of Emp;
When you declare an array, it is empty. OpenROAD does not populate the array automatically. There are a variety of methods that you can use to add rows to an array. For more information, see "Working with Arrays, Table Fields, and Collections" in the Programming Guide.