Contents | Index | < Browse | Browse >
ADDRESS
usage: ADDRESS [symbol | string | [[value] [expression]]
-specifies a host address for commands issued by the interpreter. There
are four forms for the address instruction:
1)ADDRESS {string|symbol} expression
sends the results of expression to a host without changing the
previous or current address.
2)ADDRESS {string|symbol}
specifies the new host address
3)ADDRESS [VALUE] expression
the result of expression specifies the new host address and the
current address becomes the previous address.
4)ADDRESS
toggles between the current and previous hosts.
-Caution: the following is a common addressing mistake:
/* a program specific address */
programaddress='ProWrite'
address programaddress command
This will fail because the interpreter attempts to pass the command to a port called PROGRAMADDRESS instead of ProWrite. To make it work, use the VALUE keyword to tell ARexx to interpret the expression:
address value programaddress command
-see also Address() , Commands