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.

REMOVE<br />

Syntax<br />

REMOVE(dyn.array.var, delim.var)<br />

Description<br />

The <strong>UniBasic</strong> REMOVE function extracts an element from a dynamic array and<br />

assigns the removed element to a variable. REMOVE does not change the value of<br />

the dynamic array.<br />

REMOVE searches a dynamic array for system delimiters. When UniData finds a<br />

delimiter, it assigns the contents of the array element and the delimiter to the variable.<br />

UniData maintains a pointer to the last substring you remove so that successive<br />

REMOVE statements move progressively through a dynamic array.<br />

The REMOVE function performs the same action as the REMOVE command, but<br />

you cannot use it to specify a starting position.<br />

Tip: Use REMOVE to sequentially process the elements of a dynamic array.<br />

Parameters<br />

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

Parameter Description<br />

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

dyn.array.var Specifies a dynamic array from which to remove elements.<br />

delim.var Specifies the delimiter code. When the end of the array is encountered,<br />

delim.var is set to 0.<br />

REMOVE Parameters

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

Saved successfully!

Ooh no, something went wrong!