On 8/22/07, Dave Crozier wrote: > Gary, > Scrap that, > I meant: > <<Program>> Param1||Param2||Param3 > > Just be careful you don't have spaces in the parameters and parse the string > using Getwordcount()and Getwordnum() with the terminating parameter "||" > > I wasn't thinking in the first example! > > Dave Crozier
Hi Dave, Essentially I'm trying to make my program generic, in the sense that the user can run it manually and select options on the main form. Or, they can run it scheduled in a DOS batch file, with options coming in via the parameter line. i.e. myprogram 123456879 /Option1 /Option2 ... /Optionn. Should I be doing this another way? Like with an *.ini file? It also seems strange that if I remove the "/" from in front of an Option, it comes into the program ok - first in Main.prg, then into the form via it's Init method. Cheers, Garry _______________________________________________ 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.

