Skip to content

Flow documentation · legacy product

Flo_IsLicenseOK ​

Declaration ​

C# public static extern bool Flo_IsLicenseOk();

Delphi function Flo_IsLicenseOK : boolean; stdcall;

Example ​

csharp
try
{
Boolean result = FlowAPI.Flo_IsLicenseOk();
if (result) MessageBox.Show("License is OK"); else MessageBox.Show("License is not valid");
}
catch (Exception ex)
{
MessageBox.Show("Exception checking license - " + ex.Message);
}
pascal
Delphi
try
Result := Flo_IsLicenseOk;
if Result then
showmessage('License is OK')
else
showmessage('License is not valid');
except
on e : exception do
showmessage('Exception checking license - ' + e.Message);
end;

Description ​

This causes the FlowAPI to check whether the license is OK. It returns True if the license is OK otherwise False. If an error occurs while checking the license it will raise an Exception.

TIP

You should always call this function prior to doing anything else with FlowAPI. If the license is not valid and you continue with Flo_Login it will succeed but will not allow you to execute any actions.