Send to port

Command group Flag affected Reversible Execute on client Platform(s)
Report destinations NO YES NO All

Syntax

Send to port

Description

This command directs the report output to the currently selected port. The report is sent as a stream of text with the appropriate line terminators. The port is selected with the Set port name command.

If you use Send to port in a reversible block, the report destination reverts to its former setting when the method terminates.

Example

If platform()='X'
  Set port name {2 (Printer port)} ;; macOS
Else
  Set port name {COM2:} ;; Windows & Linux
End If
Send to port
Set port parameters {9600,n,70,0}
Print report