Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 5 Field Rule Violated
Message
 
À
05/07/1998 10:14:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00114325
Message ID:
00114424
Vues:
18
Hi Sonali,

Yes they did change this in VFP 5. Unfortunately this is there in VFP6 too.

The only way I can think of is using AFIELDS() to get all the information of the current alias into an array and locate the right error message. I sincerly hope there is a better way to achieve this.

>How can we determine which field has violated the field rule that wehave set in the database. In VFP 3.0 we could use =AERROR(arrayerr)and arrayerr(3) would give us the name of the field, however in VFP 5( good knows why they have changed it!) we get the Message text! andnot the name of the field, infact =AERROR(), SYS(2018) ... don'treturn the name of the field at all!Further the Tastrade application for VFP 5 uses this to trap fieldrule violation - tsbaseform error routine and the coding there wouldgive us a error. Microsoft have not gone thru there own example codeproperly!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform