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.

Parameters<br />

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

Paramete<br />

r Description<br />

INMAT Function Return Values<br />

After you execute DIM, the <strong>UniBasic</strong> INMAT function returns one of the values<br />

described in the following table.<br />

Resizing Arrays<br />

You can use the DIM statement to dynamically redimension an array without losing<br />

any data if the size of the redimensioned array is large enough to contain all data in<br />

the original array. When you redimension, <strong>UniBasic</strong> places the old data elements into<br />

the new array from left to right and from top to bottom. All leftover data is placed in<br />

the 0,0 element.<br />

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

name1 Specifies the name of the array.<br />

rows Specifies the number of rows in the array.<br />

,cols Specifies the number of columns in the array. If cols is omitted, the array is<br />

one-dimensional.<br />

DIM Parameters<br />

Value Description<br />

0 The dimensioned array was not created. UniData returns an error message, but<br />

program execution continues.<br />

1 Memory was insufficient to create the dimensioned array. UniData returns an error<br />

message, but program execution continues.<br />

n The dimensioned array was created. n is the number of elements in the array.<br />

INMAT Function Return Values

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

Saved successfully!

Ooh no, something went wrong!