[DUG] Associate and pass filename to Delphi app
Mark Howard
mhoward at pslog.co.nz
Thu Sep 1 16:31:04 NZST 2005
Got it.
Didn't realise about the contents of both of the Parameters.
Thanks very much for your help, Jeremy.
Mark
On Thu, 01 Sep 2005 16:19:14 +1200, <JeremyN at frontiersoftware.com.au> wrote:
>
>> Is it possible to do what I want? and what is the secret?
>
> Make sure the association has a "%1" after the name of your application
>
> ParamCount and ParamStr(i) where I is a number.
>
> ParamStr(0) = Application Path and Exe Name
> ParamStr(1) = First parameter passed
>
>> I want to still be able to use the file dialogue if no parameter is
> passed.
>
> just ignore parameters then
>
> cheers,
> Jeremy
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>
--
Forest Production Systems Ltd
Creators of PSLog - A harvesting information system
www.pslog.co.nz
Skype: markhoward
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.18/86 - Release Date: 31/08/2005
More information about the Delphi
mailing list