05.06.2016, 09:03
I'm starting to feel like a broken record, but work on your indentation. If you would have done that, you would have seen that the code is formatted wrongly, and that the last ShowMessage(...), which causes an error, is not part of the command.