GetLicenseCounterByName

This method returns the license counter information for any given active or inactive license counter.

An active license counter is one that is specifically identified in the license file and is enforced by the licensing mechanism.

Syntax

GetLicenseCounterByName(CounterName as String, Count as Long, Active as Boolean)
Parameter Description
CounterName Counter name from which the value is retrieved. The name must match the one in the license file.
Count The returned utilization value from the licensing mechanism. This stores the value of usage.
Active Identifies if the license counter is active, or specified in the license file.

Sample Code

The following sample code returns the OCRed count of documents in script.

Dim theLicensingInterface as SCBCdrPROJLib.SCBCdrLicenseInfoAccess
Dim theObject as Object
Dim vValue1 as Variant
Dim LicInfoMsg as String
Set theObject = Project
Set theLicensingInterface = theObject
theLicensingInterface.GetLicenseCounterByName("OCRed Pages per Day", vValue1, True)
LicInfoMsg = "OCRed count - " & CStr(vValue1)

See also