Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drop Down Combo Box doesn't display after selection
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01224715
Message ID:
01224722
Vues:
14
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform