Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working With GetFldState
Message
De
13/09/2000 08:22:17
Todd Zmetana
Night Owl Projects
Alberta, Canada
 
 
À
11/09/2000 16:10:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00415094
Message ID:
00415721
Vues:
20
>Tried the two syntax lines below to achieve my desired results. It works when I step thru with the Debugger, but not when I run it live.
>
>The control is a drop-down combo box, that gets its values from an array. The control is bound to the "MerchType" field in the "Merchant" table, and the code is in the InteractiveChange event.
>
>Anyone know why this code isn't firing?
>
>=============
>IF GETFLDSTATE("MerchType","Merchant") = 2
>
>IF OLDVAL(MerchType,"Merchant") <> ComboBox.Value
>=============
>
>DP

David,

Try placing quotes around the MerchType in the OldVal statement.

IF OLDVAL("MerchType", "Merchant") ...


Beyond that, what code is not firing? Both of the lines or only the OLDVAL or is the OLDVAL firing but not returning what you are expecting?

Todd
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform