Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox
Message
From
07/03/2000 21:25:32
 
 
To
07/03/2000 19:09:46
Mark Heck
Future Direct Internet
Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00343031
Message ID:
00343083
Views:
21
Mark,

You may find that using the List property is simpler than using AddLISTitem (that you would need for multi-column lists).

Good luck,

Jim n

>I'm trying to create a MoverList like the sample in VFP5. It has 2 ListBoxes with only 1 column. I need the same thing but with 2 columns in both listboxes: Below is the Add button code. When it adds to lstSelected it will create 2 new rows in lstSelected. Any one have ideas?
>
>THISFORM.LockScreen = .T.
>nCnt = 1
>DO WHILE nCnt <= THIS.Parent.lstSource.ListCount
>	IF THIS.Parent.lstSource.Selected(nCnt)
>		THIS.Parent.lstSelected.AddItem(THIS.Parent.lstSource.DisPlayValue)
>		THIS.Parent.lstSelected.AddItem(THIS.Parent.lstSource.Value,THIS.Parent.lstSelected.ListCount,2)
>		THIS.Parent.lstSource.RemoveItem(nCnt)
>	EndIf
>	nCnt = nCnt + 1
>ENDDO
>THISFORM.LockScreen = .F.
>
>
>Thanks Mark
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform