I just figured it out, funily enough by looking at a visual basic app.
It was:
If listbox1.itemIndex = -1 then
showmessage('Select a File first')
else
...
Thanks for replying though
I need an 'If then else' statement so if text in a listbox is not selected then a message pops up saying 'Please select an item'.
I can do the message bit but I dont know what to put after 'If'.
Any expert help?
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.