That works - thanks! :-) I had to add a "%" to the beginning of the string, but then it worked.
When I create an executable from the "Compiler" menu and then run the programme from the shell, it doesn't do anything. The relays don't change. If I run it inside Blitz then it works. Why might this be?
--
moto
--EDIT
Forget that, I think I just had to close the Blitz editor as it was hogging the port. It's all working now :-D :-D :-D Thanks a lot for your help guys!!!