11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NOCONVERT<br />

Syntax<br />

NOCONVERT {OFF | ON}<br />

Description<br />

The <strong>UniBasic</strong> NOCONVERT command controls the conversion of the special<br />

character CHAR(0). The following <strong>UniBasic</strong> commands read and write non-UniData<br />

files or tapes and convert CHAR(0) to CHAR(128) on input. They also convert<br />

CHAR(128) to CHAR(0) on output. This can cause problems under some circumstances,<br />

especially if you use the character CHAR(128) in an application or in stored<br />

data. NOCONVERT provides a way of switching the conversion OFF or ON. The<br />

default is OFF.<br />

The following <strong>UniBasic</strong> commands convert CHAR(0) and CHAR(128) when<br />

NOCONVERT is turned on:<br />

OSBREAD, OSBWRITE, OSREAD, OSWRITE, READT, WRITET<br />

Note: The PRINT and CRT functions do not work with strings that contain CHAR(0).<br />

Warning: Do not use <strong>UniBasic</strong> READ and WRITE commands to open or modify<br />

binary data in DIR-type files (for example, BP). Doing so can corrupt data in the file.<br />

Instead, use OSREAD or OSBREAD after executing the <strong>UniBasic</strong> NOCONVERT<br />

command.<br />

The following functions work with strings containing CHAR(0), regardless of the<br />

setting of the NOCONVERT command:<br />

Assignment (X = Y)<br />

Bracket function ([])<br />

Substring assignment (A[1,3] = B)<br />

String concatenation (A:B)<br />

CHAR<br />

CONVERT<br />

COUNT<br />

NOCONVERT 1-479

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

Saved successfully!

Ooh no, something went wrong!