Re: getting parameters from the command line for a 4gl instead of ace program
Posted in 1994
From John T. Fontanilla: * * Is there a way of getting parameters from the command line from a '4gl' * program instead of an 'ace' program? I'm in the process of converting * all 'ace' programs to '4gl' and all our ace programs get parameters from * the command line. I looked in the manual (version 4.00) and it only had * reference to parameter in functions (ex. FUNCTION x( y, z) ... END FUNCTION). * So if you know the answer or technique to do it, pls. e-mail. THANKS!!! * * John * -- * John Fontanilla | Work: (203) 790-9921 AOH: (203) 350-3841 * Transportation Data |E-mail: john@gagme.wwa.com * 100 Mill Plain Rd. | Views expressed does not reflect that of my employers. * Danbury, CT 08611 | Maligayang bati sa inyo!!! :) Yes. The statements to use are: NUM_ARGS() returns the number of arguments. ARG_VAL(1) ARG_VAL(2) .. ARG_VAL(N) returns the argument value N used as follows: DEFINE arg_count SMALLINT, arg1 CHAR( 20 ) LET arg_count = NUM_ARGS() LET arg1 = ARG_VAL( 1 ) Robert Minter |Data Systems Support| \\\\\\_/// Programmer, Software Development | Orange, CA | ( _ _ ) internet: rob@dssmktg.com | Tel: 714.771.0454 | (| ^ |) bangpath: uunet.uu.net!dssmktg!rob| Fax: 714.771.3028 | \\`-'/ \\_/