Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiselect Option in ListBox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01120276
Message ID:
01120277
Views:
18
>Hi All
>
>I have to give a option to the user to select multiple languages from the list.
>I have created one container class with textbox and command button. when clicked on command button another form opens whith a list of languages,the user selects it and then selected values get concatenated and displayed in the textbox.
>My problem is if the user clicks the command button again, now the previously selected values must appear as selected. This is something i am unable to achieve.
>
>Can any one help me with this
>
>Thanks & Regards

Send TextBox value as parameter to that form, then AFTER you fill list box with languages just do:
IF NOT EMPTY(lcParametersWithPreviouslySelectedLanguages)
   FOR lnFor = 1 TO thisform.List1.ListCount
       thisform.List1.List(lnFor).Selected = (thisform.List1.List(lnFor) $ lcParametersWithPreviouslySelectedLanguages)
   NEXT
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform