QGrid Obsolete commands

QGObs_GetMainTable

QGObs_GetMainTable(areaRef; tableNum):errorCode
areaRef Longint QGrid area reference
tableNum Longint Main table number
error Longint Error result
Do not use this command in QGrid v1.1 or later

This QGrid v1.0 command is preserved in QGrid v1.1 for compatibility reasons.
It has been substituted by newer commands.


Returns the main table of a QGrid area.

Parameter areaRef is the QGrid area reference. If areaRef is not a valid QGrid area reference, qg_paramErr error is returned.

Parameter tableNum receives the 4D table number of the area's main table.

If no main table has been specified for areaRef, parameter tableNum is set to -1 and qg_SourceErr error is returned.

Example

` display the main table number in a dialog box
 
C_LONGINT($theFile)
 
$err:=QGObs_GetMainTable (xGrid;$theFile)
If ($err = qg_noErr)
  ALERT("MainTable number is: "+String($theFile))
End if
 

Related commands

QG_SetNumCells Sets the 4D expression giving the grid size
QG_GetNumCells Returns the current grid size expression
QGObs_SetMainTable Assigns the main 4D table for a QGrid area (obsolete)

QGrid © Escape Information Services
Generated by QDoc 2.6 on Thu, 2 May 2002 00:33:09 +0300