You can have lots of parameters where lots >= 0 Use ParamCount if you want to loop through them. I use command line parameters quite a lot so let me know if you want some snippets. I don't really want to post them cos I'm ... well, shy ... and self-conscious. Wayne
NZ Borland Developers Group - Delphi List <[email protected]> on Thursday, 1 September 2005 at 16:31 +0000 wrote: >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, <[EMAIL PROTECTED]> >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 >> [email protected] >> 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 > >_______________________________________________ >Delphi mailing list >[email protected] >http://ns3.123.co.nz/mailman/listinfo/delphi _______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi
