ins Statement

The ins statement is an alternative to the insert() function for inserting a string expression into a dynamic array.

Syntax

ins str.exp before dyn.array.exp<ac.exp {, vc.exp {, sc.exp}}>

ins str.exp before dim.array.exp(element)<ac.exp {, vc.exp {, sc.exp}}>

Parameter(s)

str.exp

Specifies the element to insert in the dynamic array.

array.exp

Specifies the dynamic or dimensioned array in which the element will be inserted.

ac.exp  

Specifies the attribute in which the element will be inserted.

vc.exp  

Specifies the value in which the element will be inserted.

sc.exp

Specifies the subvalue in which the element will be inserted.

Example(s)

x<1> = "a"

x<2> = "c"

ins "b" before x<2>

print x

a^b^c

See Also

Attribute Count Expression

del Statement

insert() Function

locate Statement

replace() Function

Subvalue Count Expressions

Value Count Expression