Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which methods to populate and keep fresh a list box
Message
From
14/01/2000 17:02:53
 
 
To
14/01/2000 15:06:36
Gail Heineman
Alaska Dept of Fish and Game
Anchorage, Alaska, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00318308
Message ID:
00318390
Views:
37
Have you tried putting "FormVerList.Requery" into the refresh method of the form?

>Newbie question. I have a form on which I would like the user to select from a combo box (sets scanrun->formchar), and the results from that selection to populate a list box (named formverlist) from which another value (formver) can be selected.
>It works, but the list box isn't current until I click on it.
>Which method or methods of which control(s) do I put this code in so that the list box is always filled with the versions of the currently selected formchar in the combo box? Is there a better way? With sincere thanks.
>
>* Table fileconstants has the versions for each formchar.
>* Populate list item of formver list box.
>thisform.formverlist.clear
>select formver,formvername from fileconstants where formchar = scanrun->formchar into cursor formversions
>lni = 1
>scan
> thisform.FORMVERLIST.addlistitem(formversions.formver,lni,1)
> thisform.FORMVERLIST.addlistitem(formversions.formvername,lni,2)
> lni = lni + 1
>endscan
>thisform.refresh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform