Path: news.daimi.aau.dk!jlk From: jlk@daimi.aau.dk (J|rgen Lindskov Knudsen) Newsgroups: comp.lang.beta Subject: Re: How to read Parameters? Date: 30 Apr 1996 20:50:46 GMT Organization: DAIMI, Computer Science Dept. at Aarhus University Lines: 49 Message-ID: <4m5uf6$4l8@gjallar.daimi.aau.dk> References: <4m4h85$q3c@fbi-news.Informatik.Uni-Dortmund.DE> Reply-To: jlknudsen@daimi.aau.dk (Jorgen Lindskov Knudsen) NNTP-Posting-Host: fraxinus.daimi.aau.dk In <4m4h85$q3c@fbi-news.Informatik.Uni-Dortmund.DE> Thus spake ut@lmr.informatik.uni-dortmund.de (Ulrich Thomale): >-- >Hello! >Is there the possibility to examine the parameters of the >commandline where a beta program is called? >For example the compiled File is called main. It is invoked >with "main appendix". How can I read the parameter appendix >with beta? >Uli Just use the following from betaenv: (************** Command line arguments *****************) NoOfArguments: (* Return number of arguments on command line *) (# noOfArgs: @integer; <> exit noOfArgs #); Arguments: (* Returns argument number argNo. * Note: argument number 1 is the command itself. *) (# argNo: @integer; theArg: ^text; enter argNo <> exit theArg[] #); Regards, Jorgen Lindskov Knudsen, Computer Science Department, Aarhus University Ny Munkegade 116, DK-8000 Aarhus C, DENMARK E-mail: jlknudsen@daimi.aau.dk, Phone: +45 89 42 32 33, Fax: +45 89 42 32 55 ************ BETA information Sources ************************ * WWW: http://www.mjolner.dk * * http://www.daimi.aau.dk/~beta/info * * News: comp.lang.beta * * FAQ: http://www.daimi.aau.dk/~beta/FAQ * * E-mail: info@mjolner.dk * * Address: Mjolner Informatics, Science Park Aarhus, * * Gustav Wieds Vej 10, DK-8000, Aarhus C, DENMARK * * Tel.: +45 86 20 20 00 * * Fax.: +45 86 20 12 22 * **************************************************************