The ParamStr works off the CmdLine variable in the System unit. You can
clear that (although be aware it is a PChar), and the ParamStr and the
ParamCount should return nothing.

Phil.
----- Original Message -----
From: "Alistair George" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 1:09 PM
Subject: [DUG]: Paramstr


> Hi all. I can use a boolean variable, instead to signal the paramstr has
been
> used & is now invalid but as a matter of interest, does anyone know how to
clear
> the paramstr list (command line) after it has been used?
>
> BTW the earlier query of problem with shutting down an errant program of
mine by
> the powerdown button have now been resolved:
> A) by using the WM_QUERYENDSESSION (which will close the program, but
stops the
> shutdown events aftewards.
> B) by using WM_Power call to force another instance of shutting down
follows
> the above and makes the program behave as desired.
> Cheers,
> Al+
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>                     c
>
> --------------------------------------------------------------------------
-
>     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/
>

---------------------------------------------------------------------------
    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/

Reply via email to