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

SPACE Syntax SPACE(expr) Description The UniBasic SPACE function returns a string containing the specified number of spaces. Note: Functions can be concatenated within a PRINT statement. Example In the following example, the program statement prints HI and THERE separated by 15 spaces: 1-776 UniBasic Commands Reference PRINT "HI":SPACE(15):"THERE" This results in: HI THERE Related Command UniBasic SPACES

SPACES Syntax SPACES(dyn.array.expr) Description The UniBasic SPACES function returns the number of spaces specified in each element of the dynamic array dyn.array.expr. Example In the following example, the program segment prints the number of spaces specified in each element of the dynamic array ARR1: ARR1 = 1:@AM:2:@AM:3:@AM:4:@AM:5 ARR2 = SPACES(ARR1) This results in ARR2 containing one space in the first element, two spaces in the second element, and so forth. Related Command UniBasic SPACE SPACES 1-777

SPACE<br />

Syntax<br />

SPACE(expr)<br />

Description<br />

The <strong>UniBasic</strong> SPACE function returns a string containing the specified number of<br />

spaces.<br />

Note: Functions can be concatenated within a PRINT statement.<br />

Example<br />

In the following example, the program statement prints HI and THERE separated by<br />

15 spaces:<br />

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

PRINT "HI":SPACE(15):"THERE"<br />

This results in:<br />

HI THERE<br />

Related Command<br />

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

SPACES

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

Saved successfully!

Ooh no, something went wrong!