Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiselect Listbox
Message
De
21/01/2003 15:56:08
 
 
À
21/01/2003 15:44:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00743914
Message ID:
00743930
Vues:
12
>Hello all! I have just added a listbox to a form in my application and set the multiselect property to .T. The listbox is working fine, I am trying to figure out how to store the data the user selects so that I can use it as search criteria in a SQL statement. Can anyone shed some light on this for me?
>
>TIA!

You have to spin through the entire contents of the ListBox and check the Selected property of each entry.
FOR x=1 TO oList.ListCount
  IF oList.Selected(x)
    * item is selected
  ENDIF
ENDFOR
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform