QGrid
![]() |
![]() ![]() |
QG_GetNumCells(areaRef; sizeExpression):errorCode | |||
![]() |
areaRef | Longint | QGrid area reference |
![]() |
sizeExpression | Text | Expression giving the number of grid cells |
![]() |
error | Longint | Error result |
Returns the 4D expression used in calculating the grid size.
Parameter areaRef is the QGrid area reference. If areaRef is not a valid QGrid area reference, qg_paramErr error is returned.
Parameter sizeExpression receives the 4D expression used in calculating the number of cells in the grid.
If no expression has been specified for areaRef, parameter sizeExpression is set to an empty expression and qg_SourceErr error is returned.
Example
` display the expression giving the number of grid cells in a dialog box C_TEXT($xpression) $err:=QG_GetNumCells (xGrid;$xpression) If ($err = qg_noErr) ALERT("Grid size is given by: "+$xpression) End if |
Related commands
QG_SetNumCells | Sets the 4D expression giving the grid size |