Contents Index GetSQLCode method IsOpen method

UltraLite Static C++ User's Guide
  C++ API Reference
    ULCursor class

Insert method


Prototype 

bool  Insert( )

Description 

Inserts a row in the table with values specified in previous Set methods.

Returns 

true (1) if successful.

false (0) if unsuccessful.

Example 

The following example inserts a new row into the table based at the current position:

productTable.SetProd_id( 2 );
productTable.SetPrice( 3000 );
productTable.SetProd_name( "8' 2x4 Studs x1000" );
productTable.Insert();

When inserting a row, you must supply a value for each column in the table.

For information on cursor positioning after inserts, and the position of the inserted row, see Using table and query classes.

See also 

Delete method

Update method


Contents Index GetSQLCode method IsOpen method