Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 5 Field Rule Violated
Message
 
To
05/07/1998 10:14:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00114325
Message ID:
00114424
Views:
19
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!
Previous
Reply
Map
View

Click here to load this message in the networking platform