Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox
Message
From
07/03/2000 19:09:46
Mark Heck
Future Direct Internet
Florida, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
ListBox
Miscellaneous
Thread ID:
00343031
Message ID:
00343031
Views:
58
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
Next
Reply
Map
View

Click here to load this message in the networking platform