Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving items in lists
Message
From
02/02/2007 10:36:55
 
 
To
02/02/2007 10:34:10
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01191770
Message ID:
01191796
Views:
9
This message has been marked as the solution to the initial question of the thread.
>You can add items to multi-column listbox using Listbox.AddListItem method instead of AddItem. This way you would have to use RemoveListItem to remove items later.
>
>Could you please provide me some example
Thisform.List1.columncount=2
nCounter=0
Select mytable
Scan
  nCounter=nCounter+1
  Thisform.List1.AddListitem(mytable.field1,nCounter,1)
  Thisform.List1.AddListitem(mytable.field2,nCounter,2)
EndScan
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform