|
virtual bool COTable<T>::Add(bool bNeedNewHandle=false); Return Value true if successful; otherwise false. Parameter [in] bNeedNewHandle: A boolean data indicating if this object needs the row handle of the newly added record. Remark Calls the function IRowsetChange::InsertRow to insert a record into a data source. If bNeedNewHandle is true and the rowset property DBPROP_SERVERDATAONINSERT is turned on, a COTable<T> object will automatically retrieves the newly added record into client. This function is specially useful to retrieve an autonumber column data for an added record. |