Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Aerror() in Vfp ?
Message
De
05/03/1997 18:53:47
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Groupes d'usagers
Titre:
Aerror() in Vfp ?
Divers
Thread ID:
00023051
Message ID:
00023051
Vues:
255
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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform