Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why VFP lost data after returned modal form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00981759
Message ID:
00983158
Views:
29
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform