CTRecord::BatchMode
Retrieves the current batch mode.
Declaration
CTBATCH_MODE CTRecord::BatchMode();
Description
CTRecord::BatchMode() retrieves the current batch mode. The batch mode is set by calling the CTRecord::SetBatch() method. If a batch operation is not active, CTRecord::BatchMode() returns CTBATCH_NONE.
Return
Returns the current batch mode or CTBATCH_NONE if no batch operation is currently active.
Example
// check if a batch operation is in progress
if (hRecord.BatchMode() != CTBATCH_NONE)
printf("Batch operation is underway\n");
else
printf("No batch operations\n");
See Also
TRecord::BatchLoaded(), CTRecord::BatchLocked(), CTRecord::BatchTotal(), CTRecord::EndBatch(), CTRecord::InsertBatch(), CTRecord::IsBatchActive(), CTRecord::NextBatch(), CTRecord::SetBatch()