TEXTPOS Function (BigText)
Microsoft Dynamics Nav 2009
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.
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: