UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

Note: SEND with the X option suppresses the output of return/line feed. However, you cannot include both quotation marks and the colon (‘:’) in the same statement. Examples In the following example, the program statement sends the string to line 0 unless line 0 is not attached. If line 0 is not attached, UniData displays the message “Line not attached”. 1-712 UniBasic Commands Reference SEND BEGIN_TRANSMISSION TO 0 ELSE PRINT "Line not attached" In the next example, the program statement converts the string to HELLO WORLD before sending it to line 0: TESTVAR = "48454C404F WORLD" SENDX TESTVAR TO 0 ELSE PRINT "Line not attached" Related Commands UniBasic GET UniData PROTOCOL – For information, see the UniData Commands Reference.

SEQ Syntax SEQ("char.expr") Description The UniBasic SEQ function converts a single character to its ASCII code value. The SEQ function is the complement of the CHAR function. SEQ supports multibyte languages. Tip: Use SEQ(@NULL) to determine the ASCII code that represents the null value on your system. Example In the following example, the program statement prints the ASCII code corresponding to the character “#” (in this case, 35): PRINT SEQ("#") Related Commands UniBasic ASCII, CHAR, CHARS, EBCDIC SEQ 1-713

Note: SEND with the X option suppresses the output of return/line feed. However, you<br />

cannot include both quotation marks and the colon (‘:’) in the same statement.<br />

Examples<br />

In the following example, the program statement sends the string to line 0 unless line<br />

0 is not attached. If line 0 is not attached, UniData displays the message “Line not<br />

attached”.<br />

1-712 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

SEND BEGIN_TRANSMISSION TO 0<br />

ELSE PRINT "Line not attached"<br />

In the next example, the program statement converts the string to HELLO WORLD<br />

before sending it to line 0:<br />

TESTVAR = "48454C404F WORLD"<br />

SENDX TESTVAR TO 0 ELSE PRINT "Line not attached"<br />

Related <strong>Commands</strong><br />

<strong>UniBasic</strong><br />

GET<br />

UniData<br />

PROTOCOL – For information, see the UniData <strong>Commands</strong> <strong>Reference</strong>.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!