Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List box.
Message
From
20/08/2001 17:36:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
List box.
Miscellaneous
Thread ID:
00546465
Message ID:
00546465
Views:
46
I have craeted a mover form that uses two list boxs, one to hold fields to select and another to store the fields the user selects. The problem is I have a button that lets the user chose all fields the code is as below:

WITH THISFORM
FOR I = 1 TO .lstSelect.LISTCOUNT
.mnSelectedItems = .mnSelectedItems+1
.lstSelected.additem(.lstSelect.value)
.lstSelect.removeitem(.lstSelect.topitemid)
ENDFOR
ENDWITH

The problem is the removeitem list is blowing up telling me I have an invalid count.

Two questions:
1.) Is there a better way to do this.
2.) Can the program choose a filed in the select listbox when the program activates?
Like a select on activate!!!
Next
Reply
Map
View

Click here to load this message in the networking platform