<< Return to Main Index

< Return to Class Index

CGXDBEngine::SetValue

virtual BOOL SetValue(long nRecord, long nField, CString* strValue) = 0;

nRecord

Specifies the record id (0 based).

nField

Specifies the field id (0 based).

strValue

Specifies the value.

Return Value

TRUE if the operation was successful. FALSE otherwise.

Remarks

Always make sure to call Edit on this record or AddRow if this is a new record before calling SetValue on a particular record. To store the changes made with SetValue into the data source, call Update.

Once you call SetValue on a particular (nRecord, nField), the engine will cache it in a temporary buffer before you call Update to store the changes into the data source. GetValue will also return the value in the temporary buffer when the record is in edit or addNew mode.

See Also

CGXDBEngine::GetValue CGXDBEngine::Edit CGXDBEngine::AddRow CGxDBEngine::Update

CGXDBEngine

Class Overview | Class Members