therooster
asked on
Elist error index out of range
Hi,
i have a problem with a listbox that has the property multiple select set to
true and sort set to true. coz everytime i have to remove multiple items or
one item it will display an error elist errot. can you help me?
i have a problem with a listbox that has the property multiple select set to
true and sort set to true. coz everytime i have to remove multiple items or
one item it will display an error elist errot. can you help me?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
thanks for the correction, geo,
usual it was just from head,
as often as last time
meikl ;-)
usual it was just from head,
as often as last time
meikl ;-)
No problem, meikl :-)
for i := listbox1.items.count - 1 downto 0 do
if listbox1.selected[i] then
listbox1.items.delete(i);
If this answers your question then accept kretzschmar's comment as answer !!!
Regards, Geo