TEXTPOS Function (BigText)

Retrieves the position at which a specific string first occurs in a BigText.


Position := BigText.TEXTPOS(String)

Parameters

String

Type: Text

The text string to search for in the BigText variable. If this parameter is empty, then 0 is returned.

Type: Integer

This return value indicates the position where the first occurrence of the string starts in the BigText variable.

If String is not found in the BigText variable, then 0 is returned.

The first character in a BigText variable is position 1.

The following table shows examples of the TEXTPOS function.

BigText variable Function call Position returned

ABCDEFG

BigText.TEXTPOS("BCD");

2

ABCDEFG

BigText.TEXTPOS("");

0

ABCDEFG

BigText.TEXTPOS("XYZ");

0

To delete the content in a BigText variable use the CLEAR function.

CLEAR(BigText)

Community Additions

ADD
Show: