Subject Rollbacks
Author Malcolm Smith
If a user browses via a grid and presses the down arrow until the grid goes
into insert mode automatically, enters no data and then closes the form I
get an exception because of missing required fields.

Apart from asking the user if they want to commit, is this code the correct
way to handle it.

if(transMaster->Started && !transMaster->InTransaction)
{
try
{
transMaster->Commit();
}

catch(...)
{
transMaster->Rollback();
}
}

where transMaster is the transaction.

I'm not doing any explicit transactions in my form.


Malcolm Smith
MJ Freelancing
ABN: 30 671 763 146
http://www.mjfreelancing.com