# SEND

Updated: 11/30/2021, 7:00:45 PM
Created: 11/30/2021, 7:00:45 PM
Last Updated By: Jake Tuttle
Read Time: 1 minute(s)

# Description

The SEND statement sends a block of data directly to a device. This takes the general form:

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

Where:

output is an expression evaluating to a string that will be sent to the output device (specified by FileVar). It is expected that the device has already been opened with OPENSER or OPENSEQ. The SEND 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 SEND syntax requires you specify either a THEN or ELSE clause, or both. IIf the data is send without error, it executes the THEN clause. If the data cannot be sent, it executes the ELSE clause.

View other sequential file operations for examples of use.

See also: SENDX .

Go back to jBASE BASIC

Go back to Programmers' Reference Guide