Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drop Down Combo Box doesn't display after selection
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01224715
Message ID:
01224722
Views:
13
Remove the controlsource, since it is not what you're using.

>I am working on making my Combo Box List display after I've selected one of the items as shown in the below code, but it won't display.
>
>I have a one-character field called BEND and I allow only the first character to go into the field for PASS, FAIL, or NOT TESTED. So, that would be P, F or N.
>
>Here's the LostFocus method:
>
>WITH ThisForm
>   DO CASE
>      CASE This.ListIndex = 1		&& Not Tested
>         REPLACE Certs.Bend WITH "N"
>			
>      CASE This.ListIndex = 2		&& Pass
>         REPLACE Certs.Bend WITH "P"
>		
>      CASE This.ListIndex = 3		&& Fail
>         REPLACE Certs.Bend WITH "F"
>			
>   ENDCASE
>   .SaveCancelStatus()
>   .Refresh()
>ENDWITH
>
>
>I put the following in the combo box's INIT: This.ListIndex = 1
>ComboBox ROWSOURCE="Not Tested, Pass, Fail"
>ComboBox ROWSOURCETYPE=1 (Value)
>BoundColumn=1
>BoundTo=.T.
>ControlSource=certs.bend
>
>I am able to put the value I select into the field, but for some reason, this value won't display. Do I need to interpret the value in the field from the one character?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform