The next step is to set the properties of variables that you defined. The first variable, i, is declared as Long. The second variable, adSamples, will be declared as a one-dimensional array holding 20 elements of type Double.
1. Right click on the variable and select Properties.
Alternately, you can double click on the variable icon, select the variable
and choose Properties from the
View menu, or click the Properties tool from the
standard toolbar.
2. 2. The properties of a variable include Name, Type, array dimension (Dim) and size (Dim Size) , description (Desc) , and Public (the Public does not show here since it is not applicable for program variables). Public property indicates whether this variable can be used from other modules. The Value property page contains the variable's initial value, and whether the variable is constant and cannot be changed programmatically (the const property).
3. Click in the Desc
field and type Loop Counter for
the description.
The Variable Properties window should look like this:
4. Leave the Properties window open and select the next variable adSamples. Note that you do not have to close the Properties window; the properties window updates and displays the object you selected. Repeat steps 1-2 for adSamples and type Array of 20 samples in the description field.
5. Click the drop down arrow next to the Type combo box
and select Double as the type.
Set the Dim to 1
and the Dim Size to [20].