Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using an Array with a ComboBox
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00175889
Message ID:
00175890
Views:
27
>I created a property on a form aGroupCodes[1,2]. Within the init of the form I fill the array with the records of a table beginning with the second row of the array. The first row defaults to a "doesn't apply" value.
>
>Anyhow if I set the combobox RowSource and RowSourceType properties programatically within the form's init everything works fine. If I set the values manually in the properties dialogue of the combobox only the first row appears, the "doesn't apply" row.
>
>I know I should, then, just set the properties programatically, but I am curious as to why this is the case.
>
>Any ideas,
>Paul

Anytime you change Combo.RowSource (e.g. adding more rows to array) you should fire Combo.Requery to get new contents into the combo.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform