Difference between revisions of "MC-Basic:PRINT HASH"

From SoftMC-Wiki
Jump to: navigation, search
(added print #1,"" '''''emits \0 (zero character)''''')
 
(17 intermediate revisions by 3 users not shown)
Line 2: Line 2:
  
 
|SYNTAX=
 
|SYNTAX=
PRINT #<DeviceHandle>, “''<String>” <nowiki>|</nowiki> [Expression] {, <nowiki>|</nowiki> ; “<String>” <nowiki>|</nowiki> [Expression]'' }* {DetectOverflow = <'' Expression'' >}
+
PRINT #<DeviceHandle>, “''<String>” ?'"`UNIQ--nowiki-00000001-QINU`"'? [Expression] {, ?'"`UNIQ--nowiki-00000002-QINU`"'? ; “<String>” ?'"`UNIQ--nowiki-00000003-QINU`"'? [Expression]'' }
 
 
 
|AVAILABILITY=
 
|AVAILABILITY=
 
All versions
 
All versions
 
DetectOverflow parameter: Version 4.0.5 and higher
 
  
 
|DESCRIPTION=
 
|DESCRIPTION=
Line 13: Line 10:
  
 
|TYPE=
 
|TYPE=
''< (DetectOverflow)Expression>'': Long
+
''<DeviceHandle>: Long<br>
 +
''<string>: String<br>
 +
''<expression>: Long, Double, String, Joint or Location
  
 
|RANGE=
 
|RANGE=
 
''<DeviceHandle>: 1 to 255
 
''<DeviceHandle>: 1 to 255
''< (DetectOverflow)Expression>'': 0 or 1
 
  
 
|UNITS=
 
|UNITS=
Line 29: Line 27:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Variables defined within a task may be queried from outside the task (for example, from the terminal) only when the task is idle. Within a task, local variables are only available if the task is idled in a section of code wherein the local variable was declared.
+
Read only<br>
 
+
print #1,"" '''''emits \0 (zero character)'''''
 
|EXAMPLE=
 
|EXAMPLE=
Print "Hello,";<br>
+
Print #1, Nm$, Dept$, Level, Age<br>
 
 
Print "world."<br>
 
''Prints the following:<br>
 
''Hello, world.
 
 
 
 
 
 
 
Common shared Message as string
 
 
 
Try
 
 
 
Print Message
 
 
 
Catch 8036      ‘ Entry Station output buffer overflow.
 
 
 
End Try
 
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:PRINTUSING|PRINTUSING]]
+
* [[MC-Basic:PRINT|PRINT]]
* [[Axystems:MC-Basic:SYSTEM.PRINTMODE|SYSTEM.PRINTMODE]]
+
* [[MC-Basic:PRINTUSING|PRINTUSING]]
 +
* [[MC-Basic:PRINTUSING hash-sign|PRINTUSING hash-sign]]
 +
* [[MC-Basic:OPEN|OPEN]]
 +
* [[MC-Basic:CLOSE|CLOSE]]
 +
* [[MC-Basic:INPUT$|INPUT$]]
 +
* [[MC-Basic:LOC|LOC]]
  
 +
[[Category:MC-Basic:File Management|PRINT HASH]]
  
 
}}
 
}}

Latest revision as of 12:25, 17 August 2020

Multiple strings and expressions are printed to a 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.

Syntax

PRINT #<DeviceHandle>, “<String>” ?'"`UNIQ--nowiki-00000001-QINU`"'? [Expression] {, ?'"`UNIQ--nowiki-00000002-QINU`"'? ; “<String>” ?'"`UNIQ--nowiki-00000003-QINU`"'? [Expression] }

Availability

All versions

Type

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

Range

<DeviceHandle>: 1 to 255

Scope

Configuration, Task or Terminal

Limitations

Read only
print #1,"" emits \0 (zero character)

Examples

Print #1, Nm$, Dept$, Level, Age

See Also