How to fill a second list with values from a multi-select list box in Visual FoxPro (148724)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Windows 7.0
- Microsoft Visual FoxPro 8.0
- Microsoft Visual FoxPro 9.0 Professional Edition
This article was previously published under Q148724 SUMMARY
When using multiple page pageframes, you may find it useful to populate a
list box on a following page with the values selected from a multiple-select list box on a previous page.
This article demonstrates how to fill the first multiple-select list box
from an array created by a SELECT-SQL statement and then take the user's
selections from this list box to fill the second list box on another page
of the pageframe.
The form has a command button that resets the multiple-select list so that
the user can start making selections on a clean unselected list. Initially,
this button is disabled; it becomes enabled when at least one selection is
made in the multiple-select list box. When the user clicks the button to
reset the list, the command button again becomes disabled.
The form also checks whether a selection was made on the first list. If no
items are chosen in the first list, the display value of the second list
shows "No Selection Made" in the list. This feature is optional.
Modification Type: | Major | Last Reviewed: | 2/9/2006 |
---|
Keywords: | kbcode KB148724 |
---|
|