Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selected combo box value
Message
 
À
30/11/1996 00:20:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00013857
Message ID:
00013860
Vues:
33
>I'm trying to get a value out of a combo box
>and i use this code
>
> i=1
> do while i <= thisform.cbxdept.ListCount
> if thisform.cbxdept.Selected(i)
> exit
> else
> i=i+1
> endif
> enddo
>
>does anyone have any idea why the if statement
>is never true? I just runs up all the way
>to the number of elements. (this snippet WORKS
>on list boxes...are combos different?)

chris

Dumb question: Why not just use the Value property of the Combo Box?

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform