Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi-select listbox
Message
From
21/07/1999 03:53:15
 
 
To
20/07/1999 16:32:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00243818
Message ID:
00244016
Views:
36
Hi Mike.

>> I have a listbox connected to a parameterized view. I requery the view whenever a grid is refreshed. As the grid is moved, the current controlsource highlights the "correct" item. But the selected item
from the previous record is still highlighted. <<

After you requery the view, you need to requery the ListBox.

>> My problem is that I use this.clear() in a custom method. Clear() does appear to remove all items from the list, <<

Really? The VFp on-line help says that this.clear() only works with RowSourceType = 0-None.

>> however, it doesn't reset the selected[] and selectedid[] arrays. <<
LOCAL lnCnt
WITH This
   FOR lnCnt = 1 TO .ListCount
       .Selected[lnCnt] = .F.
   ENDFOR
ENDWITH
Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform