Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox Question...
Message
From
30/01/2003 15:47:48
Bob Rabinoff
Performance Research, Inc.
Fairfield, Iowa, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00747367
Message ID:
00747391
Views:
13
What I did for a mover container control was the following:
Set up two cursors, one for each listbox. Have a record_id field,
a display name field and an lShow field in each. Put _all_ available
records in _both_ cursors. To start, set lShow = .T. for all in the
left (source) listbox and lShow = .F. in the right (destination) one.
Filter both cursors on lShow.

Then if the user selects a record in the left box and goes Add, set
lShow = .F. for the source and .T. for the corresponding record in the
destination and refresh the lists. Voila, the record has moved.

I have noticed a problem with list boxes in general in VFP 5 -- there
must be a memory leak (not surprising given MS's history in this area)
because they often crash. I've had much better results in VFP 7 so
hopefully they've fixed the problem.

Hope this helps.
Bob
Previous
Reply
Map
View

Click here to load this message in the networking platform