Datatype Cursors

Several DB_Api functions need cursors, which must be declared. You can declare cursors explicitly in the global var section of Silk Performer (cursors have global scope).

Example

var
  c1: cursor;

dcltrans
  transaction DBApiSelling
  begin
    hDBC1 := DB_Connect("dsn=sample;uid=u1;pwd=u1");
    SQLSetConnectOption(hDBC1, SQL_AUTOCOMMIT, 0);
    DB_AllocCursor(hDBC1, c1);
  end DBApiSelling;