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 />

Parameter Description<br />

X Specifies that GET return var as hexadecimal. This feature<br />

allows binary data to contain a 255 value (hexadecimal FF).<br />

For instance, if a user enters HELLO, the input data variable<br />

contains 48454C4C4F.<br />

var Specifies a variable to receive input.<br />

,length Specifies the number of characters to accept as input from the<br />

attached line. The default is one character unless you use<br />

UNTIL in the statement.<br />

SETTING count.var count.var is the number of characters received from the<br />

attached line.<br />

FROM line.expr line.expr is the attached line receiving input.<br />

UNTIL term.expr term.expr is a string of characters, any of which terminate<br />

input. The terminating character does not appear in the<br />

returned text variable.<br />

If you use UNTIL and do not specify term.expr, any number of<br />

characters is accepted. Characters often used for the UNTIL<br />

clause are carriage return and line feed.<br />

RETURNING term.var Assigns the character that terminates the input to term.var.<br />

Input terminates due to:<br />

Reaching the maximum number of characters.<br />

Timeout.<br />

Record mark encountered in input. In this case, term.var<br />

contains an empty string.<br />

WAITING seconds Specifies the number of seconds to wait before UniData times<br />

out.<br />

THEN<br />

statements | ELSE<br />

statements<br />

If the line is not attached, UniData performs the ELSE clause.<br />

If the line is not attached and there is not an ELSE clause, a<br />

runtime error displays and the user enters the <strong>UniBasic</strong><br />

debugger.<br />

GET Parameters<br />

1-289

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

Saved successfully!

Ooh no, something went wrong!