Difference between revisions of "MC-Basic:PRINT HASH"
(added print #1,"" '''''emits \0 (zero character)''''') |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
|SYNTAX= | |SYNTAX= | ||
− | PRINT #<DeviceHandle>, “''<String>” | + | PRINT #<DeviceHandle>, “''<String>” ?'"`UNIQ--nowiki-00000001-QINU`"'? [Expression] {, ?'"`UNIQ--nowiki-00000002-QINU`"'? ; “<String>” ?'"`UNIQ--nowiki-00000003-QINU`"'? [Expression]'' } |
|AVAILABILITY= | |AVAILABILITY= | ||
All versions | All versions | ||
Line 27: | Line 27: | ||
|LIMITATIONS= | |LIMITATIONS= | ||
− | Read only | + | Read only<br> |
− | + | print #1,"" '''''emits \0 (zero character)''''' | |
|EXAMPLE= | |EXAMPLE= | ||
Print #1, Nm$, Dept$, Level, Age<br> | Print #1, Nm$, Dept$, Level, Age<br> | ||
Line 35: | Line 35: | ||
* [[MC-Basic:PRINT|PRINT]] | * [[MC-Basic:PRINT|PRINT]] | ||
* [[MC-Basic:PRINTUSING|PRINTUSING]] | * [[MC-Basic:PRINTUSING|PRINTUSING]] | ||
− | * [[ | + | * [[MC-Basic:PRINTUSING hash-sign|PRINTUSING hash-sign]] |
* [[MC-Basic:OPEN|OPEN]] | * [[MC-Basic:OPEN|OPEN]] | ||
* [[MC-Basic:CLOSE|CLOSE]] | * [[MC-Basic:CLOSE|CLOSE]] | ||
Line 41: | Line 41: | ||
* [[MC-Basic:LOC|LOC]] | * [[MC-Basic:LOC|LOC]] | ||
− | [[Category | + | [[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