Harry Yuen
have a button with this code
begin
do_key('DELETE_RECORD');
end;
anthony
delete_record; deletes the current record in the form.
If the multi-record form is tabular, I generally please a button per
displayed record to make the delete very obvious.
Mike Krolewski
On a similar note, when delete_record is used, and the delete fails due
to some database constraint, the record is still removed from the block,
just like clear_record. Is there some way to keep this from happening?
I am currently using a Prog Unit to do a DML delete, with exception
handling, and I clear the record only if the delete was successful.
This is fine for a few blocks on a form but requires a great string of
IFs when there are many blocks. Is there a better way?
Thanks,
Dave Boswell