IsStandalone: Boolean;
The IsStandalone property returns True if stand-alone license is used, and False if network network or temporary local licenses are used that are checked out from license server (network with the commuter attribute).
For details about license types and possible application scenarios see the About License Type and Period article.
To execute the example, place the Button component named Button1 on the form.
Add links to the Host, Ui, Forms system assemblies.
The example is a handler of the OnClick event for the Button1 component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
LicManager: ILicenseManager;
Begin
LicManager := WinApplication.Instance.LicenseManager;
If LicManager.IsStandalone Then
WinApplication.InformationBox("Stand-alone license");
Else
WinApplication.InformationBox("Network license");
End If;
End Sub Button1OnClick;
After executing the example the message with the information about version in use is displayed.
See also: