Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best place for ON ERROR?
Message
 
À
07/04/1997 21:36:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00027337
Message ID:
00027520
Vues:
29
>X-MimeOLE: Produced By Microsoft MimeOLE Engine V4.71.0544.0
>
>
>>What are the opinions out there on the best place to put ERROR routines?
>I
>>tried putting an error routine in a forms Error Handler method but it
>>doesn't trap all errors that occur on the form.
>
>
>I think the best thing is to break the error routine to several parts
>and incorporate this into the base classes
>at the upper-most level there will be a method in the application object
>which will handle everything the other error methods don't
>
>Arnon


Is there a hierarchy to how VFP looks for an error routine before issuing the default FoxPro messages. I thought that using the forms ErrorEvent method would do it since all other objects are contained within that form.

The problem I'm having is this. ie this user trying to mnipulate a record in use -- If the user tries to edit the field value in a textbox on the form the ErrorEvent of the form is triggered. If the user selects the "Delete" command buttonon the form, which issues a messagebox of Yes/No for confirmation and then Delete is issued if Yes, the VFP default message comes up. What's the difference?

Thanx

Colin Magee
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform