MC-Basic:PRINTTOBUFF

From SoftMC-Wiki
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