Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add item into listbox manually?
Message
From
16/05/2000 09:53:36
 
 
To
16/05/2000 09:30:51
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00369913
Message ID:
00369922
Views:
21
>How can I add 2 items into a listbox with 2 columns, 1 in each column?

Try this,
    myList.RowSourceType = 0         && None
    myList.ColumnCount = 2           && 2 Columns

    myList.AddListItem("A1",1,1)     && Row 1 Col 1
    myList.AddListItem("A2",1,2)     && Row 1 Col 2
    myList.AddListItem("B1",2,1)     && Row 2 Col 1
    myList.AddListItem("B2",2,2)     && Row 2 Col 2
Previous
Reply
Map
View

Click here to load this message in the networking platform