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

REMOVE Syntax REMOVE(dyn.array.var, delim.var) Description The UniBasic REMOVE function extracts an element from a dynamic array and assigns the removed element to a variable. REMOVE does not change the value of the dynamic array. REMOVE searches a dynamic array for system delimiters. When UniData finds a delimiter, it assigns the contents of the array element and the delimiter to the variable. UniData maintains a pointer to the last substring you remove so that successive REMOVE statements move progressively through a dynamic array. The REMOVE function performs the same action as the REMOVE command, but you cannot use it to specify a starting position. Tip: Use REMOVE to sequentially process the elements of a dynamic array. Parameters The following table describes each parameter of the syntax. Parameter Description 1-680 UniBasic Commands Reference dyn.array.var Specifies a dynamic array from which to remove elements. delim.var Specifies the delimiter code. When the end of the array is encountered, delim.var is set to 0. REMOVE Parameters

The variable delim.var is assigned a value based on the type of delimiter encountered. The following table describes the values of the delimiter codes. *ASCII value is language-dependent and can be reassigned. Related Commands UniBasic Delimiter Code Description ASCII Value* 0 array end 1 record mark 255 2 attribute mark 254 3 value mark 253 4 subvalue mark 252 5 text mark 251 6 nonprinting; not used 250 7 nonprinting; not used 249 REMOVE Delimiter Codes DEL, EXTRACT, INSERT, REMOVE, REPLACE, SUBSTRINGS REMOVE 1-681

The variable delim.var is assigned a value based on the type of delimiter encountered.<br />

The following table describes the values of the delimiter codes.<br />

*ASCII value is language-dependent and can be reassigned.<br />

Related <strong>Commands</strong><br />

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

Delimiter<br />

Code Description ASCII Value*<br />

0 array end<br />

1 record mark 255<br />

2 attribute mark 254<br />

3 value mark 253<br />

4 subvalue mark 252<br />

5 text mark 251<br />

6 nonprinting; not used 250<br />

7 nonprinting; not used 249<br />

REMOVE Delimiter Codes<br />

DEL, EXTRACT, INSERT, REMOVE, REPLACE, SUBSTRINGS<br />

REMOVE 1-681

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

Saved successfully!

Ooh no, something went wrong!