QG_GetNumCells(areaRef; sizeExpression):errorCode
areaRef Longint QGrid area reference
sizeExpression Text Expression giving the number of grid cells
error Longint Error result

Get the current grid size expression

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 for calculating the number of cells in the grid.

If no expression has been specified for areaRef, parameter sizeExpression is set to empty text and qg_SourceErr error is returned.

Related commands

QG_SetNumCells Set the 4D expression that calculates the grid size