home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
new
/
comm
/
mail
/
thor
/
thor.lha
/
rexx
/
getcommandinfo.thor
< prev
next >
Wrap
Text File
|
1994-08-06
|
1KB
|
50 lines
/*
** getcommandinfo.thor - will return all available ARexx commands in THOR
** to the sender, or the template to a single command
**
** Will return 10 if the command given was not known to THOR. 0 on all
** other cases.
**
** Template:
**
** COMMAND=CMD,STEM/A
**
** STEM is the stem variable THOR will but the result into, and it must be
** supplied or this command will fail. The stem variable must be in
** uppercase.
** If COMMAND is used, THOR will return the template for that command in
** the given STEM variable.
** If COMMAND is not given, THOR will return the following:
**
** <stem>.COUNT - the number of commands
** <stem>.n - n is a number which will not exceed <stem>.COUNT
** and contains the command
** <stem>.n.TEMPLATE - n is a number which will not exceed <stem>.COUNT
** and contains the template for the command
**
*/
address "THOR.01"
GETCOMMANDINFO cmd GETCONFLIST stem TEMP
if(rc = 0) then say TEMP
GETCOMMANDINFO stem INFO
if(rc ~= 0) then exit
i = INFO.COUNT
say "The number of ARexx commands in THOR:" INFO.COUNT
n = 1
DO while i > 0 & n <= i
say "Command :" INFO.n
say "Template:" INFO.n.TEMPLATE
n = n + 1
END
exit