11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Parameters<br />

The following table describes each parameter of the syntax.<br />

Paramete<br />

r Description<br />

constant Specifies the constant to be replaced with value when the program is<br />

compiled.<br />

value Specifies the value to replace constant with when the program is compiled.<br />

string Specifies a literal string, in quotes, to replace constant with when the program<br />

is compiled.<br />

EQ Parameters<br />

Examples<br />

In the following example, all occurrences of the constant SB are replaced with the<br />

value CHAR(8) (clear screen) during program compilation:<br />

EQUATE SC TO CHAR(8)<br />

In the next example, UniData replaces every occurrence of the constant TITLE with<br />

the string ALGONQUIN:<br />

EQUATE TITLE LITERALLY "ALGONQUIN"<br />

In the next example, UniData replaces every occurrence of the constant TRUE with<br />

the value 1, and every occurrence of the constant FALSE with the value 0:<br />

EQUATE TRUE to 1, FALSE to 0<br />

IF TRUE<br />

PRINT "Income less than target figure."<br />

END<br />

IF FALSE<br />

PRINT "Income equal to or greater than target!"<br />

END<br />

EQU 1-263

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

Saved successfully!

Ooh no, something went wrong!