MC-Basic:PRINTTOBUFF

From SoftMC-Wiki
Revision as of 12:25, 10 August 2020 by Nurit (talk | contribs) (Added description of the send parameter.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Multiple expressions are printed to a buffer in the serial port, separated by either a comma or semicolon. The semicolon puts the two expressions next to each other, while the comma puts a tab between them. The value assigned to the optional Send parameter determines whether the buffer content will be send to serial port at the end of the command (Send = True) or stored in the buffer (Send = False). If send assignment is abolished, send defaults to False.

Syntax

PRINTTOBUFF #<DeviceHandle>, [Expression] {, ;[Expression]} {SEND = TRUE or FALSE}

Availability

All versions

Type

<DeviceHandle>: Long
<expression>: Long, Double, String, Joint or Location

Range

<DeviceHandle>: 1 to 255

Scope

Configuration, Task or Terminal <Send>: TRUE or FALSE

Limitations

Read only

Examples

PrintToBuff #1, Nm$, Dept$, Level, Age
PrintToBuff #1, Nm$, Dept$, Level, Age Send = True

See Also