Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiselect Option in ListBox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01120276
Message ID:
01120277
Vues:
20
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform