Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo DisplayValue Won't Stay Set
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01076265
Message ID:
01076275
Views:
16
>I have a three-character field that gets set with a combo box. The combo box must contain a description of the three-character code, to the right of the code (e.g. - "F06 - FedEx Express 3-Day"). After setting the code, the drop-down must display only the three-character code, with the description to the right of it, on the form.
>
>In the Init() code, I have the combo set up with just the three-character codes, and the form display is correct. When the combo is clicked, the When() code resets the items to include the descriptions, so that they will be included in the drop-down. After clicking a selection, the Valid() code calls the Init() code, to reset the items back to three characters.
>
>The Control Source for the combo is a variable, which is a property of a public variable: oVar.fldNCR_Ship_Via.
>
>Everything is running properly up to the point of the form refresh. The variables contain the expected values every step of the way. However, when the form refreshes, the DisplayValue property is cleared, and the combo appears blank, even though the control source still contains the correct value.
>
>What could be causing the DisplayValue to reset?
>
>---Michael

when do you refresh the form ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform