Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working With GetFldState
Message
From
13/09/2000 08:22:17
Todd Zmetana
Night Owl Projects
Alberta, Canada
 
 
To
11/09/2000 16:10:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00415094
Message ID:
00415721
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform