NetTalk Central

Author Topic: Validate a deletion from a browse - how?  (Read 3828 times)

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Validate a deletion from a browse - how?
« on: April 01, 2008, 05:10:09 PM »
Hi,

I have a browse that should allow deletions but subject them to validation before completion and inform the user if the validation fails and why.   Like the insert and update validation of a form. 

Does anyone know how to do this?

Any help greatly appreciated.  Thanks

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Validate a deletion from a browse - how?
« Reply #1 on: April 02, 2008, 07:05:32 AM »
Hi Casey,

I don't think I have too many examples of this,
but you can put your code into the
ValidateDelete routine in the form.
If the delete should fail, set the variable
Loc:Invalid
to something.
And set the variable
ANS = 0

Cheers
Bruce

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: Validate a deletion from a browse - how?
« Reply #2 on: April 03, 2008, 04:53:11 PM »
On the money as usual, Bruce.  Thanks.