REMOVE.POS Statement

Sets the position of the internal REMOVE pointer.

Syntax

REMOVE.POS( string) = X

Syntax Elements

string

Name of a string whose internal REMOVE pointer is being returned or set.

Operation

REMOVE.POS positions the internal REMOVE pointer to the supplied position, or the end of the string delimiter if the supplied value is -1 or outside the range of the string.

MultiValue Compatibility

Refer to MultiValue Compatibility.

Example

READ ITEM FROM SALES,"2012" THEN

 

RESTART = INDEX(ITEM, CRLF, 100)

;* Save position of delimiter prior to 100th line of sales item.

REMOVE.POS(ITEM) = RESTART

;* Position remove pointer prior to this field.

REMOVE PART FROM ITEM TO CRLF SETTING SET

Remove the 100th line of sales item.

See Also

REMOVE statement, DELIM.POS function.