Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox
Message
From
02/06/2003 10:48:43
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
02/06/2003 10:38:24
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00795204
Message ID:
00795212
Views:
12
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform