dsaftler
asked on
Programmatically selected rows in a listbox, and allow user to add additional rows
I have a listbox with a table fields data source. I programmatically set some rows as selected
and they show as selected. When I click in the listbox to select additional rows, all of the selected rows are immediately deselected except the current row, even if I hold down the control key when selecting additional rows. If I shift+click on the last row (which would define the bottom of a range), then my ctrl+click allows me to select and deselect as expected.
Any way I can keep the rows selected? Anyway I can simulate the shift+click?
this is VFP 9.0.
and they show as selected. When I click in the listbox to select additional rows, all of the selected rows are immediately deselected except the current row, even if I hold down the control key when selecting additional rows. If I shift+click on the last row (which would define the bottom of a range), then my ctrl+click allows me to select and deselect as expected.
Any way I can keep the rows selected? Anyway I can simulate the shift+click?
this is VFP 9.0.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Each of the above answers is a possible solution and this question is important and better not be deleted.
ASKER
Since this is a known FoxPro bug and several workarounds. Captain Cyril recommends that the solution remains active, as this may be the only answer available.
ASKER
This may be a foxpro bug, and should be left active so that users have access to several workarounds.
There seems to be a bug in EE's comment box. I was pasting the links to the valid answers and then it became all wrong. So I only wrote that the answers were valid. :)
@dsaftler, OK, you are still here so you may close this question and select answers which you think are good. TIA