Skip to content

Flow documentation · legacy product

Flo_Logout ​

Declaration ​

C# public static extern bool Flo_Logout();

Delphi function Flo_Logout : boolean; stdcall;

Example ​

csharp
C#
try
{
Boolean result = FlowAPI.Flo_Logout();
if (result) MessageBox.Show("Successfully logged out"); else MessageBox.Show("Error logging out");
}
catch (Exception ex)
{
MessageBox.Show("Exception logging out - " + ex.Message);
}
pascal
Delphi
try
Result := Flo_Logout;
if Result then
showmessage('Successfully logged out')
else
showmessage('Error logging out'); //this may be because a asynchronous action is still executing
except
on e : exception do
showmessage('Exception logging out of Flow configuration - ' + e.Message);
end;

Description ​

Logs the FlowAPI out of the configuration database. You must call this function hen you are finished prior to closing your application. If you are logged in and need to switch to another configuration database you will need to logout first. If you call this function when you are not yet logged in it will still succeed and return true.