UltraLite User's Guide
C++ API Reference
Generated table class
bool Open( ULConnection* conn )
bool Open( ULConnection* conn, ul_index_num index )
Prepares your application to work with the data in a generated table object.
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
true (1) if successful.
false (0) if unsuccessful.
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 );