Contents - Index


UnlockStatus

 

Type: Method

Parameters: none

Returns: TxUnlockStatus

 

 

This function returns the current UnlockStatus of the control and is provided so you can determine if the control is properly licensed.

 

The integer enumeration TxUnlockStatus can have the following values:

usUnlicensed = -1

usUndefined = 0

usLicensed = 1

usDemoLicense = 2

 

example code in DataFlex:

     Procedure OnCreate

       OLETxUnlockStatus eStatus

       Integer  iDays

       Forward Send OnCreate

       Get ComUnlockStatus to eStatus

       If (eStatus=OLEusDemoLicense) Begin

         Get ComDemoDaysLeft to iDays

         Showln "Demo has " iDays " days left."

       End

     End_Procedure