GRID.GetArray |
state = GRID.GetArray( BYVAL nControl AS INTEGER, BYREF out AS ARRAY, BYVAL startrow AS INTEGER = -1, BYVAL startcol AS INTEGER = -1, BYVAL endrow AS INTEGER = -1, BYVAL endcol AS INTEGER = -1, BYVAL offset AS INTEGER = 0 ) AS INTEGER
Gets an entire 2D array from the Grid. If the supplied array has more than 2 dimensions, then the function will convert the array internally to a 2D array by merging the lower dimensions. For example, an array dimensioned as (100, 4, 3) will be merged into (100, 12) array.
Example:
GRID.GetArray( nControl, barr, 1, 1, 10, 2 )
FOR j = 1 To 10 FOR i = 1 TO 2 PRINT "BARR(";j;",";i;") = ";barr(j,i);", " ENDFOR PRINT, ENDFOR
|