Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Aerror() in Vfp ?
Message
From
05/03/1997 18:53:47
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
User groups
Title:
Aerror() in Vfp ?
Miscellaneous
Thread ID:
00023051
Message ID:
00023051
Views:
244
My table update error handler uses AERROR() to trap TABLEUPDATE() errors:

SELECT table
IF NOT TABLEUPDATE()
=AERROR(laError)
...error handler code...
ENDIF

When a field validation rule fails, I noted the following:

Array element In VFP 3.0b In VFP 5.0

laError(1) error number error number
laError(2) error message text error message text
laError(3) field name that violated rule error message text <----- ?

I discovered this when I converted a VFP 3 app to VFP 5. My VFP 3.0b error
handler bombs because of the difference between the return values of the
3rd array element.

This is a bug.

I can't imagine that MS would have changed the functionality of AERROR() in
VFP 5, so I must be doing something wrong. Any ideas on this?
Next
Reply
Map
View

Click here to load this message in the networking platform