TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-321
#REPLYV Built-In Function
#REPLYV Built-In Function
Use #REPLYV to add a copy of the text in a string to the reply if the TACL IN file is
$RECEIVE. You can also use #REPLYV to append the binary data of a STRUCT to
the reply when TACL is operating as a server.
string
is the name of an existing variable level, which can be of type STRUCT, or text
enclosed in quotation marks, or a concatenation of such entities. The
concatenation operator is '+' (the apostrophes are required).
Result
#REPLYV returns nothing.
Considerations
The #REPLYV function is used when TACL functions as a server. For additional
information, see #SERVER Built-In Function on page 9-341.
If there is already text in the reply, through previous calls to #REPLY or #REPLYV
(or calls to #OUTPUT or #OUTPUTV if the TACL OUT file is also $RECEIVE), a
space precedes the added text in the accumulated reply.
The form
#REPLYV struct
is not equivalent to
#REPLY [ struct]
The latter appends the external representation of the STRUCT, rather than its actual
binary data, to the reply.
Example
This example shows the use of both quoted text and a variable name in constructing a
reply:
#PUSH termname
#SET termname [#MYTERM]
#REPLYV "My terminal is " '+' termname '+' " at this time."
Assuming that the home terminal is named $WEIRD at the time the #SET function is
invoked, the following is included in the reply:
My terminal is $WEIRD at this time.
#REPLYV string