Name

NoOfDays                                                                                            

Purpose

Get the number of days of a trial period

Params

Parameter

Type

Example

Note

ModuleID

String

D1001

Unique ModuleID – identifies the module to be tested

Returncode

Returncode

Type Integer

Note

-1

An error occurred, check LastReturnCode

0

No trial period

1 to 2147483648

Number of days of the trial period. Consideration: It’s the value of the plain license file, activation keyActivation Keys are not attended.

Usage

E.g. show a dialog like “Your are on day x of your 30 days trial period”

Sample

 

  iDays := lic.NoOfDays(‘D1001’);

  if iDays = -1 then

  begin

     iRes := lic.LastReturncode;

    << an error occurred >>

     ...

end

else if iDays = 0 then

begin

  << no no of day limitation for that module >>

  ...

end

else

begin

  << show the dialog >>

  ...

See also

RemainingDays, ExpiredOn