Appearance
StartTransaction
Declaration
Function StartTransaction : boolean
Example
pascal
procedure OnMapEvent(var Value:Variant);
begin
if Not Source.StartTransaction then //check that the transaction is started
LogError('Unable to start new transaction');
end;Description
This starts a new database transaction against the data definition. Database transactions are handled automatically so you do not normally need to use this function unless you want specific control over database transactions.
If you start a transaction you will need to manage the Committing or Rollback of the transaction using CommitTran and RollbackTran functions