Skip to content

Flow documentation · legacy product

Flo_TestDBCon ​

Declaration ​

C# public static extern bool Flo_TestDBCon(string aFID);

Delphi function Flo_TestDBCon (aFID : PChar) : boolean; stdcall;

Example ​

csharp
try
{
Boolean result = Flo_TestDBCon("00000000-0000-0000-0000-000000000000");
if (result)
{
MessageBox.Show("DB Connection successfully connected");
}
else MessageBox.Show("Error connecting DB Connection");
}
catch (Exception ex)
{
MessageBox.Show("Exception testing DB Connection - " + ex.Message);
}
pascal
Delphi
try
Result := Flo_TestDBCon('00000000-0000-0000-0000-000000000000');
if Result then
begin
showmessage('DB Connection successfully connected')
end else
showmessage('Error connecting DB Connection');
except
on e : exception do
showmessage('Exception testing DB Connection - ' + e.Message);
end;

Description ​

This function can be used to test whether a DB Connection as given by aFID can successfully connect to the specified database. You can find the aFID value by looking at the FID column in the FLO_DBCONNECTIONS table of the configuration database.