Subject Instructions sequence (2nd post)
Author Fabio Bot <fabiobot@yahoo.com.br>
>> with IB_Cursor do
>> begin
>> Prepare;
>> if not IB_Transaction.InTransaction then
>> IB_Transaction.StartTransaction;
>> <--- THIS MUST BE DONE BEFORE THE PREPARE.

Why need starts transaction always before prepare?
The instructions sequence below is wrong?

with IB_Cursor do
begin

//*** here ib_transaction.started is false
Prepare;
//*** here ib_transaction.started is true

IB_Transaction.StartTransaction;
//... do something (Edit, Insert, ...)
IB_Transaction.Commit;

IB_Transaction.StartTransaction;
//... do something (Edit, Insert, ...)
IB_Transaction.Commit;

UnPrepare;
end;

Thanks,

Fábio.