Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selected combo box value
Message
 
To
30/11/1996 00:20:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00013857
Message ID:
00013860
Views:
28
>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/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform