Action Statement
Send information to a local/remote application, or to the errorlog.
send VALUE [VALUE]... to {errorlog|APPLICATION_NAME}
VALUE
A string, integer, float, or boolean value.
APPLICATION_NAME
An identifier for the application program name. Specify the same name for the application that you defined in the application environment declaration. Remember also that an application must be started with the start statement before you can send information to it.
Description
You can send any number of values to an application program or to the errorlog in a single send statement. If multiple values are sent, they are concatenated.
When you send data to an application program, you often must end the data with "\r", "\r\n", or "\n". Remote applications usually require "\r", or sometimes "\r\n". Local applications usually require "\n". This simulates the Enter/Return key on the keyboard. Most applications do not recognize input until they receive the line terminator character or character sequence.
You can determine the success or failure of a send action statement by testing the value of the errorlevel function. A zero value indicates success; any non-zero value indicates failure.
If the program is compiled with External Strings, then any string literals used in this statement will be externalized.
Example
application Control
action Test is
...
send TestChar to errorlog
start local Control "control.exe"
response to line "##" from Host
send "compute x" Process to Control
See Also
application Environment Declaration
start Action Statement