That's why I suggested SelCount property, 'cause you could then do:
Code:
if ListBox1.SelCount > 0 then
begin
for n := 0 to ListBox1.Count - 1 do
if ListBox1.Selected[n] then
ProcessFile(ListBox1.Items[n]);
end
else
showmessage('Hey dude, select some file!!!');
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.