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

Examples In the following example, the statement eliminates the record with the record ID of JONES from the most recently opened default file: DELETEU "JONES" The following segment deletes the record. The record ID is stored in the variable DEL_ID. The file was opened to the variable DISCOUNT. DEL_ID = "ACTION_FILMS" DELETEU DISCOUNT, DEL_ID Related Commands UniBasic DEL, DELETE, DELETE function, RELEASE 1-209 UniBasic Commands Reference

DIM Syntax DIM name1(rows[,cols]) [,name2(rows[,cols])]... Synonym DIMENSION Description The UniBasic DIM command creates and determines the dimensions of a dimensioned array. You can specify arrays with one dimension (rows) or two dimensions (rows or rows, cols). In addition, the following limitations apply: You must dimension any array before you use it within a program. Zero elements other than 0,0 (such as 0,5 or 1,0) are invalid. The maximum number of elements you can specify is based on the total amount of virtual memory available on your system. Arrays passed to a subroutine cannot be redimensioned within the subroutine. For information about system configurations, see Administering UniData on UNIX or Administering UniData on Windows Platforms. MATREAD, MATWRITE, and MATPARSE load and empty an array from left to right and from top to bottom beginning with element 1,1 and ending by placing excess data in element 0,0. Note: BASICTYPEs M and P do not support position 0,0 in arrays. You could lose data if an array is too small for the amount of data you are attempting to load into it with MATPARSE. DIM 1-210

DIM<br />

Syntax<br />

DIM name1(rows[,cols]) [,name2(rows[,cols])]...<br />

Synonym<br />

DIMENSION<br />

Description<br />

The <strong>UniBasic</strong> DIM command creates and determines the dimensions of a dimensioned<br />

array. You can specify arrays with one dimension (rows) or two dimensions<br />

(rows or rows, cols). In addition, the following limitations apply:<br />

You must dimension any array before you use it within a program.<br />

Zero elements other than 0,0 (such as 0,5 or 1,0) are invalid.<br />

The maximum number of elements you can specify is based on the total<br />

amount of virtual memory available on your system.<br />

Arrays passed to a subroutine cannot be redimensioned within the<br />

subroutine.<br />

For information about system configurations, see Administering UniData on UNIX<br />

or Administering UniData on Windows Platforms.<br />

MATREAD, MATWRITE, and MATPARSE load and empty an array from left to<br />

right and from top to bottom beginning with element 1,1 and ending by placing<br />

excess data in element 0,0.<br />

Note: BASICTYPEs M and P do not support position 0,0 in arrays. You could lose<br />

data if an array is too small for the amount of data you are attempting to load into it<br />

with MATPARSE.<br />

DIM 1-210

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

Saved successfully!

Ooh no, something went wrong!