QG_GetLicenses

QG_GetLicenses(totalSeats; occupiedSeats; productCodes; productSeats):errorCode
totalSeats Longint Total number of seats
occupiedSeats Longint Currently occupied seats
productCodes Array string Product code of each expansion pack
productSeats Array longint Seats added by each expansion pack
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_GetLicenses (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
 

QGrid © Escape
Generated by QDoc 2.8 on Thu, Oct 8, 2009 17:36:17