Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00177457
Message ID:
00177465
Views:
37
Hi Mark!

You were close. I believe what you want is something like:

ThisForm.LstListItem.AddItem('123', Y, 1)
ThisForm.LstListItem.AddItem('456', Y, 2)

Where Y is the row number your working with.

To add to the bottom of the list you could use:

ThisForm.LstListItem.AddItem('123', ThisForm.LstListItem.ListCount + 1, 1)
ThisForm.LstListItem.AddItem('456', ThisForm.LstListItem.ListCount, 2)

>I am additing items to listbox:
>ThisForm.LstList.AddItem('123', 1)
>ThisForm.LstList.AddItem('456', 2)
>I'd like to have one row with data in two columns but I have two rows with data in a first column only. What am I doing wrong?
>Thanks Mark
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform