License Class
The License object provides access to the properties of your Statelake software license.
This is useful for accessing a unique ID value that is unique to your installation of Statelake. This can be used as an identifier in EDI traffic.
You can access the license object by referencing License.
By working with this File Connection object you can -
Get the unique license key - retrieve a unique license key with License.UserId and License.LicenseId.
Get the license name - retrieve the name the license is registered to with License.LicenseName.
Get the license expiry date - retrieve the expiry date of the license with License.LicenseExpiry.
Declaration: License : TFloLicense
All of the license information can be found by running this stand-alone script.
procedure
ScriptEvent(
var
Value:Variant);
var
WhoMe, WhoIt, WhoOwns :
string
;
WhatDate : TDateTime;
begin
LogInfo(
''
);
//The UeerID of the license
WhoMe := License
.
UserId;
LogInfo(
'The UserID is '
+WhoMe);
//The LicenseID as a string
WhoIt := License
.
LicenseId;
LogInfo(
'The LicenseID is '
+WhoIt);
//The expiry date of the license
WhatDate := License
.
LicenseExpiry;
LogInfo(
'The License expiry date is '
+FormatDateTime(
'dd/mm/yyyy'
, WhatDate));
//The registered owner of the license
WhoOwns := License
.
LicenseName;
LogInfo(
'The registered owner of the license is '
+WhoOwns);
LogInfo(
''
);
end
;