FairCom Corporation


4.2.3.6 CTBase::Commit


Syntax

void Commit ( )

Parameters

This method has no parameters.

Description

Commits a transaction started with a call to Begin. Notice that Commit does not free any locks. Locks acquired during the transaction need to be released with a call to Unlock or CTRecord::UnlockRecord.

Return

None.

Example

pSession->Begin;
try {
pDatabase->AddTable("custmast", "");
printf("\nTable added to database.");
pSession->Commit;
}
catch (CTException& err)
{
Abort( );
printf("\n\n%d %s",err.GetErrorCode, err.GetErrorMsg);
}

See Also

Begin, Abort, IsTransActive


FairCom Corporation
www.faircom.com