Contents Index GetSize<Column> generated method Set<Column> generated method pdf/preface.pdf

UltraLite User's Guide
  C++ API Reference
    Generated table class

Open method


Prototype 

bool  Open( ULConnection* conn )

bool  Open( ULConnection* conn, ul_index_num index  )

Description 

Prepares your application to work with the data in a generated table object.

Parameters 

conn    The address of a ULConnection object. The connection must be open.

index    An optional index number, used to order the rows in the table. The index is one of the members of the generated index enumeration. By default, the table is ordered by primary key value.

For more information, see Index enumeration.

When the table is opened, the cursor is positioned before the first row

Returns 

true (1) if successful.

false (0) if unsuccessful.

Example 

The following example declares a generated object for a table named ULProduct, and opens it:

ULData db;
ULConnection conn;
ULProduct tb;
db.Open();
conn.Open( &db, "DBA", "SQL" );
tb.Open( &conn );
See also 

Close method

Index enumeration


Contents Index GetSize<Column> generated method Set<Column> generated method pdf/preface.pdf