addNew( )

Creates a new record and initializes it to zero. The new record becomes the current record and remains current after you call the commit method. The new record is appended to the AGDBSet object.

Interface

AGDBSet

IDL definition
void addNew( );
ADO equivalent

AddNew method

JavaScript synopsis
dbset.addNew( )
C synopsis
void AVaddNew(AGDBSet* dbset);
Parameters
  • dbset   The AGDBSet object.

Returns

None

Remarks

If you call addNew( ) while editing the current record or while adding a new record, AGDBSet interface calls the undo( ) method to undo any changes and then creates the new record. Note that addNew( ) cannot be undone; the new record is immediately inserted into the AGDBSet object.

See also

undo( )