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.

INS<br />

Syntax<br />

INS expr BEFORE dyn.array<br />

Description<br />

The <strong>UniBasic</strong> INS command inserts an expression with the appropriate delimiter<br />

before the specified attribute, value, or subvalue mark in a dynamic array.<br />

Note: UniData does not insert a delimiter at the end of the array.<br />

Parameters<br />

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

Parameter Description<br />

Examples<br />

In the following example, the program segment inserts Zelda, with a new attribute<br />

mark, before the second attribute:<br />

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

expr Specifies an expression to insert.<br />

dyn.array<br />

<br />

ARRAY = "H.L. Mencken":@AM:"John":@AM:"Mary"<br />

INS "Zelda" BEFORE ARRAY<br />

This results in:<br />

Specifies a dynamic array and attribute, value, and subvalue at which to<br />

insert the expression. If any one of these expressions is -1, UniData inserts<br />

the expr as the last element in the array position.<br />

INS Parameters<br />

ARRAY = "H.L. Mencken":@AM:"Zelda":@AM:"John":@AM:"Mary"

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

Saved successfully!

Ooh no, something went wrong!