QGrid Obsolete commands

QGObs_GetCaption

QGObs_GetCaption(areaRef; tableNum; fieldNum; rectLeft; rectTop; rectRight; rectBottom; displayFormat):errorCode
areaRef Longint QGrid area reference
tableNum Longint Table number
fieldNum Longint Field number
rectLeft Longint Left coordinate
rectTop Longint Top coordinate
rectRight Longint Right coordinate
rectBottom Longint Bottom coordinate
displayFormat String255 Caption format description
error Longint Error result

Returns QGrid licenses status. This command is meaningful only in a client/server installation.

The totalSeats parameter receives the number of seats that have been registered in the application.

The occupiedSeats parameter receives the number of currently occupied seats.

The productCodes and productSeats parameters are arrays that receive the product code of each expansion pack and the number of seats contributed by the expansion pack. The sum of the productSeats array should be equal to totalSeats.

Example

` Check for available seats
 
C_LONGINT($err;$totalSeats;$occupiedSeats)
ARRAY LONGINT($prodCodes;0)
ARAAY LONGINT($prodSeats;0)
 
$err:=QG_GetLicences (xGrid;$totalSeats;$occupiedSeats;$prodCodes;$prodSeats)
 
If ($err # qg_noErr)
  If (($totalSeats-$occupiedSeats) > 0)
    ` there are available seats
  End if
Else
  ` Handle the error
End if
 

Related commands

QG_GetCellCaption Return the current caption object
QG_GetCaptionStyle Returns the current caption text appearance settings
QGObs_SetCaption Sets up a caption object for area cells (obsolete)

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