Statistica Visual Basic Library of Matrix Functions - Dim Array_Name (XDim, ...)
Parameter | Description |
Array_Name | name of data array (see Arrays in functions) |
Xdim | number of elements in specified dimension of matrix (see Arrays in functions) |
The Dim function serves two purposes:
· to declare an array (see Arrays in functions) of the specified dimensions.
· to declare global variables or arrays in user-defined functions and subroutines.
- Specifying Arrays
- Arrays may be one, two, or multidimensional (up to 8 dimensions). Multi-dimensional arrays may be defined by listing the number of elements in each dimension. The array name is used to refer to the array in all matrix functions. All array declarations using Dim must occur at the beginning of the macro (SVB) program. (Array declarations and redefinitions using ReDim may occur at any point within the macro (SVB) program.)
- Specifying Global Variables and Arrays
- The Dim statement can also be used before user-defined functions and subroutines, in order to declare global variables and arrays.
- Related topics
- ReDim. For more information on using arrays, see Arrays in functions. For a complete list of matrix functions, see Statistica Visual Basic library of matrix functions.
Copyright © 2021. Cloud Software Group, Inc. All Rights Reserved.