Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why VFP lost data after returned modal form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00981759
Message ID:
00983158
Vues:
30
>Hi Again,
>and also how would be the aerror routine , i've no error routine about aerror().
>
>TIA

I have a general error logging routine on my downloads page at www.peisch.com/downloads.html. Look for the file called ErrLog.zip. I believe Doug Hennig also has one on his site at www.stonefield.com

As far as handling these kinds of errors, that can be fairly complex. What I do is check what the error is, and if the error was due to a conflict, I display a screen that shows the original value, the value that the other person entered and the value that the current user entered, and I ask the user which one to keep.

On the simplest level, you can just log the error. As an example, if you were using my error logging, you would do something like this:
if not TableUpdate(1,SomeFile)
   AERROR(laUpdErr)
   DO ErrLog with 0,lineno(),UserId,"Tableupdate Failed: "+trans(laUpdErr[1])+": "+laUpdErr[2]
endif
That stores the error number and the error message that are in the first two elements of the array.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform