Licence Protector

TotalLicences

Hide Navigation Pane

TotalLicences

Previous topic Next topic No directory for this topic  

TotalLicences

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

 

Name

TotalLicences                                                                                    

Purpose

Gets the total licenses of the module.

Params

Parameter

Type

Example

Note

ModuleID

String

D1005

Unique ModuleID – identifies the module to be tested

Returncode

Returncode

Type Integer

Note

-1

An error occurred, check LastReturncode

0 to 2147483648

Total licenses of the module

A yes-no-module returns 1 for yes, 0 for no

Usage

To check the numbers (in a counter and a yes-no-module) or to show the total amount of available licenses.

Sample

 

  iLics := lic.TotalLicences (‘D1005’);

  if iLics >= 0 then

  begin

     << use the extracted value >>

     ...

  end

  else

  begin

     iRes = lic.LastReturncode;

     << an error iRes occurred >>

     ...

 

See also

Remaininglicences, Module types