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.

STATUS<br />

Syntax<br />

STATUS( )<br />

Description<br />

The <strong>UniBasic</strong> STATUS function returns a code indicating the condition of the<br />

command or function just executed.<br />

Several <strong>UniBasic</strong> commands and functions set STATUS function return values. For<br />

information about the return values set by a particular command or function, see<br />

Appendix F, “<strong>Commands</strong> That Set STATUS() Return Values.”<br />

Example<br />

In the following example, the STATUS function returns a value of 0, indicating a<br />

successful conversion of a valid date by OCONV. STATUS would return 1 if 7334<br />

were an invalid input date or 2 if D were an invalid conversion specification.<br />

PRINT OCONV(7334,"D")<br />

PRINT STATUS()<br />

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

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

SYSTEM<br />

@variables – For information, see Appendix B, “<strong>UniBasic</strong>@variables.”<br />

STATUS 1-869

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

Saved successfully!

Ooh no, something went wrong!