Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox
Message
De
02/06/2003 10:48:43
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
02/06/2003 10:38:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00795204
Message ID:
00795212
Vues:
13
>hi all
>help me please
>i want to add items interactively to a listbox . i have a textbox in my form and i want to add number to this listbox by this textbox value(it is a employee id) and in keypress method i want search this value in one table and if this is in table the name of employee add to listbox with his number(textbox.value) but in two column in one row (column 1 employee id) (column 2 employee name that finded)

This is a sample only, on how to add items. You will have to adjust it to your specific needs:

In the ListBox.Init(), place the following command:
This.AddItem("aaa")
This.AddItem("bbb")
This.AddItem("ccc")
The same commands work for ComboBoxes, too.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform