# SENDX

Updated: 10/14/2021, 2:20:00 PM
Created: 10/14/2021, 2:20:00 PM
Last Updated By: mikes
Read Time: 1 minute(s)

# Description

The SENDX statement sends a block of data (in hexidecimal) directly to a device. It takes the general form:

SENDX output {:} TO FileVar THEN | ELSE statements
1

Where:

The output is an expression evaluating to a string that will be sent to the output device (specified by FileVar). It is expected that OPENSER or OPENSEQ has already opened the device.

The SENDX statement will append a newline sequence to the final output expression unless it is terminated with a colon ":" character.

# Note

As the expression can be any valid expression, it may have output formatting applied to it.

The SENDX syntax requires a specified THEN or ELSE clause, or both. If the data is send without error, it executes the THEN clause. If the data cannot be sent, it executes the ELSE clause.

See also: SEND.

Go back to jBASE BASIC

Go back to Programmers' Reference Guide