Licence Protector

GetRemainingSubGraceDays

Hide Navigation Pane

GetRemainingSubGraceDays

Previous topic Next topic No directory for this topic  

GetRemainingSubGraceDays

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for the print function Mail us feedback on this topic!  

 

Retrieve the remaining days of the grace period - details see CheckModuleSubscription

 

Name

GetRemainingSubGraceDays                                                              

Params

Parameter

Type

Example

Note

ModuleID

String

D1001

Unique ModuleID – identifies the module to be tested

Returncode

Returncode

Type String

Note

Double

Remaining days of the grace period as a double value - 0.5 = 12 hours

-1 = no grace period is activate (there could be a grace period but it has not started yet)

Usage

E.g. implement a good and bad value anti-cracker strategy

Sample

 

  iGraceDays := lic.GetRemainingSubGraceDays (‘D1001’);

 

  ...

See also

CheckModuleSubscription, Getval - Token SGD, SGP, SetSubGraceDays

 

If you need the days as an integer value (e.g. 2 days) then use GetVal, Token SGD

To retrieve the expiry date of the grace period use GetVal, Token SGP