Hello Phil et all, I had checked the help and set Cmdline:=nil but what you (& I thought) does not apply as the paramstr(1) still returns. Cmdline is merely the pointer to, not the variable, so I assume you clear the Cmdline, but by calling the paramstr variable you are still calling a relevant pointer.
As previously mentioned, I could use a global variable eg ReadParams := True but if they could be cleared was the question, which you answered thanks Steve. Cheers, Al+ PS an enjoyable weekend to all, and hopefully not starting next week with an invasion of Iraq. --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/