Path: utzoo!attcan!uunet!timbuk!cs.umn.edu!ub.d.umn.edu!rutgers!att!oucsace!tswingle From: tswingle@oucsace.cs.OHIOU.EDU (Tom Swingle) Newsgroups: comp.lang.pascal Subject: Re: Getting the command line args Message-ID: <2416@oucsace.cs.OHIOU.EDU> Date: 6 Nov 90 14:19:25 GMT References: <950041@hpclapd.HP.COM> <1611@umriscc.isc.umr.edu> Organization: Ohio University CS Dept., Athens Lines: 15 In article <1611@umriscc.isc.umr.edu> mcastle@mcs213f.cs.umr.edu (Mike Castle) writes: >Well, looking in the manual (which you should have, cause you DID by the >program :-), the function 'ParamCount' returns how many parameters were >passed to the program, and the function 'ParamStr[I]' return's the I'th >parameter. ParamStr[0] will return the name of the program running (i.e., >it's own name, just in case you want it to erase its self after the first >use :-) Just a small syntactical point, ParamStr is a function rather than an array, so the call should be 'ParamStr(I)' rather than 'ParamStr[I]'. Probably most everybody out there caught this also, but I thought I would post this in case someone was having trouble. Of course, like he said, it is in the manual, which you all DO have a copy of don't you? :-) -- #include