Cetin,
That works fine now. Thankyou very much.
Just one other question. The run command leaves a MS-DOS type window. Is there anyway I can disable the close button on this so that the only way they can halt program execution is by exiting the QuestPDM application which will then continue the rest of my program.
Many Thanks
Neil Lewis
IT R&D Manager
Velmore Ltd