Re: delete_record problem????

From: (wrong string) ín <aureliom_at_theglobe.com>
Date: Wed, 12 Aug 1998 19:23:09 +0200
Message-ID: <35D1CF7D.AC976A7C_at_theglobe.com>


Jimmy wrote:

> Hello all,
>
> I use delete_record to delete a retrieved record in Form4.5. However, I
> find that if the user has no privilege to delete record in table AAA,
> the delete_record function not generate any error message. I use
> form_success to determine whether the deletion is valid but it seems
> that the form_success return true even if the user has no privilege to
> delete a record in tabel AAA. How can I check the deletion is success or
> not when using delete_record?
>
> Thanks,
> Jimmy

The record is not deleted from the database until you execute the COMMIT_FORM or POST built-ins. Until then, you don't get an error message. Maybe if you place a COMMIT_FORM immediately after the DELETE_RECORD command, and check after the two commands, you will have what you want.

Good luck

        Aurelio Received on Wed Aug 12 1998 - 19:23:09 CEST

Original text of this message