GetTrialUnitsLeftCount

Top  Previous  Next

This function returns how many time units remain before registration. During this period the software is still in the trial mode.

 

function GetTrialUnitsLeftCount(dimension: Integer):Integer;

 

Parameters

 

 dimension - type of the timeframe, where:

         0 - minutes

         1 - hours

         2 - weeks

         3 - days

         4 - months

 You can use the predefined type from the UnitIntelliProtector.pas file: TUnitDimension 

 

Return value

 

 Returns the number of trial units left.

 

Requirements

 

 Library: IntelliProtectorDummy.lib

 Source: UnitIntelliProtector.pas

 

Example

 

uses UnitIntelliProtector;

//...

procedure TFormMain.UpdateControls();

begin

 lTrialDaysLeft.Caption := IntToStr(IntelliProtector.GetTrialUnitsLeftCount(eudDays));

end;

 

 





Copyright © 2015 IntelliProtector.com