----- Original Message ----- From: "Garry Bettle" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Tue, 21 Aug 2007 21:10:54 +0100 Subject: Missing Parameters in Main.prg
>Howdy all, > >Hope this email finds everyone well. > >I have the following code in the Main.prg of my project: > >LPARAMETERS tcMarketId, tcParam1, tcParam2, tcParam3 > >LOCAL gcStartDir > >ON SHUTDOWN DO myShutDown > >= MESSAGEBOX( [tcMarketId = ] + TRANSFORM( tcMarketId) + [, ] + ; > [tcParam1 = ] + TRANSFORM( tcParam1) + [, ] + ; > [tcParam2 = ] + TRANSFORM( tcParam2) + [, ] + ; > [tcParam3 = ] + TRANSFORM( tcParam3), 0, SYS(16)) > [cut] > >PS: The Messagebox() is for testing. > >If I make a call like this: > >MyProgram.exe 12345678 /Option1 > >then two parameters are passed: > >12345678, /Option1 > >But, if I make a call like this: > >MyProgram.exe 12345678 /Option1 /Option2 > >I get this: > >12345678, /Option1, .F. > >I can never get more than 2 parameters. > >Grrr... Can anyone help? > >Many thanks in advance. > >Cheers, > >Garry Hi Garry, are you sure? I have created a shortcut to MyProgram.exe and added the following parameters: 12345678 /Option1 /Option2 The messagebox displays tcMarketId = 12345678, tcParam1 = /Option1, tcParam2 = /Option2, tcParam3 = .F. Gianni _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

