snip(
THETEXT
,
STARTPOSITION
,
COUNT
)

The snip( function removes (snips!) one or more characters from the middle of an item of text.


Parameters

This function has three parameters:

thetext – the original text

startposition – the position of the first character to be removed. The position must be a positive number 1 or greater (1 corresponds to the first character of the original text).

count – the number of characters to remove. If the count is -1 then all the text from the start position to the end of the text is snipped, otherwise the count must be a positive number.


Description

This function removes (snips!) one or more characters from the middle of an item of text.

snip("abcdefghi",4,3) ☞ abcghi
snip("abcdefghi",2,7) ☞ ai
snip("abcdefghi",4,-1) ☞ abc

Note: This function is equivalent to:

thetext[1;startposition-1]+?(count=-1,"",thetext[startposition+count,-1])

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.