CTRecord::IsBatchActive
Indicates if a batch operation is under way or not.
Declaration
CTBOOL CTRecord::IsBatchActive();
Description
CTRecord::IsBatchActive() indicates if a batch operation is active or not. This is equivalent to CTRecord::BatchMode() returning CTBATCH_NONE.
Return
Value |
Symbolic Constant |
Explanation |
---|---|---|
0 |
NO |
No batch operation is under way. |
1 |
YES |
A batch operation is under way. |
Example
// check if a batch operation is active
if (CTRecord::IsBatchActive())
printf("Batch operation underway\n");
else
printf("No batch operation\n");
See Also
CTRecord::BatchLoaded(), CTRecord::BatchLocked(), CTRecord::BatchMode(), CTRecord::BatchTotal(), CTRecord::EndBatch(), CTRecord::InsertBatch(), CTRecord::NextBatch(), CTRecord::SetBatch()