@STRDEL

Top  Previous  Next

Syntax:

 

@STRDEL(<string>,<pos1>,<pos2>)

 

Description:

 

This function returns a string consisting of <string> with the characters in positions <pos1> to <pos2> deleted. The characters in the string are counted from 1.

If <pos1> is omitted or zero then the function returns <string> unmodified. If< pos2> is zero or omitted, just the single character at <pos1> is deleted. If <pos2> is negative, the ending position for the deletion is counted from the end of the string.

 

OK:

 

Unchanged.

 

Example:

 

%S = @strdel(%A,4,8)

info Result of deleting chars 4 to 8 from %A is: %S

 

See also: