Documentation Center

PassoloApp.License

Returns a value greater 0, if the license is ok, i.e. the dongle is attached or another runtime license is available. If no license is found the value is 0. If all available licenses are in use, the value is -1.

The license can be checked after using CreateObject, if SDL Passolo is externally automated, e.g. in a Visual Basic application. If no license is available, the object is created, but no other functions can be used.

There is no need to check the license in a Passolo macro, because Passolo can not be started without a license.

Syntax

Expression.License as Long

Expression Required. Object of type PassoloApp

Example

Dim psl16 As Object
Set psl16 = CreateObject("Passolo.Application.16")
If psl16.License = -1 Then
   MsgBox "All licenses are in use"
   psl6.Quit
   Set psl6 = Nothing
   Exit Sub
End If
If psl16.License = 0 Then
   MsgBox "No license found"
   psl16.Quit
   Set psl16 = Nothing
   Exit Sub
End If
...