It looks like you're new here. Sign in or register to get started.
You can use the write method to skip testing whether you should insert or update a record
Comments
You can use the write method to skip testing whether you should insert or update a record.
if ( custTable.validateWrite() )
{
if ( custTable.recId )
custTable.update();
else
custTable.insert();
}
Instead of the above code you can write the following :
if ( custTable.validateWrite() )
{
custTable.write();
}
regards
Claus Thomsen
better use insert for insert, but update for update, because update intend ttscommit transaction