SQLAssigned

From SCAR Divi Manual
Revision as of 17:21, 10 February 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function SQLAssigned(const DBIndex: Integer): Boolean; </source> ==Availability== SCAR Divi 3.31 > Current ==Description== Ret...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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