GetTrialUnitsCount |
Top Previous Next |
This function obtains total units of the trial period. This is can be minutes, hours, days, weeks, months and they are depending from the dimension.
function GetTrialUnitsCount(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 count of time units which are available in the trial period.
Requirements
Library: IntelliProtectorDummy.lib Source: UnitIntelliProtector.pas
Example
uses UnitIntelliProtector; //... procedure TFormMain.UpdateControls(); begin lTrialDaysTotal.Caption := IntToStr(IntelliProtector.GetTrialUnitsCount(eudDays)); end;
|
Copyright © 2015 IntelliProtector.com |