Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FieldBeingValidated()
Message
De
03/04/2002 10:19:43
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00639971
Message ID:
00640352
Vues:
21
>
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform