CompuServe Messages

Command tokenization?

    15-Apr-94 07:57:10
Fm: Bill Hawes 72230,267
To: Mike/CompuStore W-German 71001,210
Mike, ARexx programs can be launched either as commands (for example, from a shell) or as functions (as in a CALL instruction.) When an ARexx program is launched as a command, it usually has just a single argument string, typically the remainder of the string that was typed to launch the program. In contrast, a program launched as a function may have a number of argument strings. ARexx has an interface option that can be set by the developer to "tokenize" the command string, in which case a program launched as a command may have multiple arguments. The developer of an ARexx interface may also choose to launch ARexx scripts as functions and apply an appropriate algorithm (for example, AmigaDOS command parsing) to determine the argument strings. The REXX function arg() can be used to find the number of argument strings and their values. -Bill Hawes