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:
01120285
Vues:
19
>
>PARAM xTable_Name,xField_Name,xSelected_Value && xTableName,xField_Name helps to create cursor
>DODEFAULT()
>MAIN_TOOLBAR.ENABLED = .F.
>CreateSqlCursor(xTable_Name,xField_Name,"Select_List")
>ThisForm.Xlist1.ROWSOURCE = "Select_List." + xField_Name
>xSelected_Value = ALLTRIM(xSelected_Value)
>IF !EMPTY(xSelected_Value)
>	FOR lnFor = 1 TO ThisForm.Xlist1.ListCount
>       thisform.Xlist1.LIST(lnFor).SELECTED = (thisform.xList1.List(lnFor) $ xSelected_Value) && ERROR AT THIS POINT
>   NEXT
>ENDIF
>
My mistake, sorry:
IF !EMPTY(xSelected_Value)
   FOR lnFor = 1 TO ThisForm.Xlist1.ListCount
       thisform.Xlist1.SELECTED(lnFor) = (thisform.xList1.List(lnFor) $ xSelected_Value) && ERROR AT THIS POINT
   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