SQLAssigned

From SCAR Divi Manual
Jump to: navigation, search

Definition

function SQLAssigned(const DBIndex: Integer): Boolean;

Availability

SCAR Divi 3.31 > Current

Description

Returns true if the entered index DBIndex represents an open SQLite3 database connection.

Example

var
  DB: Integer;

begin
  DB := SQLOpen(LogsPath + 'test.db3', True);
  try
    WriteLn(SQLAssigned(DB));
  finally
    SQLFree(DB);
  end;
  WriteLn(SQLAssigned(DB));
end.

Output:

1
0

See Also