Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GOTO TOP in ComboBox
Message
 
 
To
19/09/2005 09:31:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01049365
Message ID:
01050839
Views:
23
>It's a little bit hard for me to follow all the logic in the code.
>
>>> Did you try to verify content of the array?
>Yes, All values are there and correct
>
>>>Where do you set rowsource for the combo?
>In the properties of the combobox
>

Try to do it in code after having the array filled in. E.g. this.rowsource = "thisform.myArray"

>>>Did you try requery?
>Data is from a table, so requery not applicable
>
I meant this.requery(), e.g. requery a combo.
>>> Did you try with two dimensional array?
>Array is two dimensional

Wrong choice of words from my part again, sorry. I meant, could you use two columns and not 3 in your array just for test? In other words, having numerical value as the source for combo may be a bit of a problem (it should not).

Also try this.boundto = .t.
>
>>> Did you try to comment numberofelements line?
>I had not, but now have, errors before that on
>
>THIS.ListIndex=1
>
>

I think the problem is with setting combo's rowsource in design time. Try it in run-time and see, if it helps.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform