switch_to_application <application code> [<application data parameters>];
swa
SDC Function - code x’97'
Sends an application-specific statement to the terminal.
TR-NWT-001273 Version 0-3.
The first four bytes form the application code. The data following is called the application data, and can be up to 248 bytes long. The application data is specified in hexadecimal or ASCII mode:
Signal the switch to ASCII text data using a double quotation mark. Signal the switch back to hexadecimal using a second double quotation mark. Do not include double quotation marks in the ASCII text. For example:
05 33 "LINE ONE TEXT" FF "Simon’s text" FF
Parameter substitution is allowed within ASCII data. The substitution is indicated by preceding the parameter name with a dollar sign ($). The end delimiter of the parameter name is either a period (.), a space, or the end of the text data. Note that the period or space remains in the text. To create a $ symbol, use $$. For example, "Here is a $$ symbol".
The ADSI subsystem does not check that the application data is always valid (with and without substitutions).
Note also that parameter substitution strings have a maximum length of 40 characters. The compiler checks that the total length of the application data parameters does not exceed 248 bytes. However, the compiler has no control over the length of the data after parameters have been substituted. You should therefore check that the length of the data (after substitution) also does not exceed 248.
switch_to_application MXPA 05 14 "Hold on" FF "$name" FF ;