Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox and logical field
Message
From
04/08/2000 15:13:54
 
 
To
04/08/2000 14:40:16
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00401090
Message ID:
00401315
Views:
22
The user can still change the value if it's a checkbox, so I don't know why that's a problem, unless the users have to actually see ACTIVE or INACTIVE together to know what's going on.

If that's the case and you really have to use a combobox, then you'll have do something like this:

Make the RowSource array 1 column only
Set combobox.BoundColumn = 1
Blank the combobox.ControlSource.
Assuming that after a record navigation, a form Refresh() is called, in the combobox.Refresh(), put
this.Value = IIF(mytable.lActive, "ACTIVE", "INACTIVE")

In the Valid() or InteractiveChange() of the combobox put
REPLACE mytable.lActive WITH (this.Value = "ACTIVE") IN table
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform