Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FieldBeingValidated()
Message
From
03/04/2002 10:19:43
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00639971
Message ID:
00640352
Views:
20
>
>Here are our rule call and Error for the field:
>VARTYPE(ovalid)="O".AND.(Ovalid.nlocked=0.OR.source(complevl,"CompLevl"))&& Field rule
>
>IIF(VARTYPE(ovalid)#"O","Field validation failure in COMPLEVL","") && Error
I'm still curious about why you pass the field value to source(). Can't source() just read the value from the cursor, since it has the field name?

I also see that you skip the validation if Ovalid.nLocked=0. I'm trying to develope a class that skips the validation on the underlying DBF() during a TABLEUPDATE(), if it's already been done in the View. Any chance that's what your Ovalid.nLocked=0 is doing?
Bill Morris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform