String functions

This page is generated automatically from the interpreter function registry and grouped by practical use.

Page map

Text functions 13

TEXT.CONTAINS

FUNCTIONTEXTBATCH-FRIENDLY
Kind: Function   Category: Text functions   Namespace: TEXT

TEXT.CONTAINS(value, fragment [, caseSensitive])

Returns TRUE if value contains the requested text fragment.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
caseSensitiveOptional parameter. If omitted, the command uses its internal default.

Minimal example

ASSERT TEXT.CONTAINS(LANG.HELP("ROI.SET"), "ROI")

TEXT.INDEX_OF

FUNCTIONTEXTBATCH-FRIENDLY
Kind: Function   Category: Text functions   Namespace: TEXT

TEXT.INDEX_OF(value, fragment [, caseSensitive])

Returns the zero-based index of fragment in value, or -1 when absent.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
caseSensitiveOptional parameter. If omitted, the command uses its internal default.

Minimal example

value = TEXT.INDEX_OF(value, fragment [, caseSensitive])

TEXT.LEFT

FUNCTIONTEXTBATCH-FRIENDLY
Kind: Function   Category: Text functions   Namespace: TEXT

TEXT.LEFT(value,count)

Returns the first N characters.

Minimal example

value = TEXT.LEFT(value,count)

TEXT.LEN

FUNCTIONTEXTBATCH-FRIENDLY
Kind: Function   Category: Text functions   Namespace: TEXT

TEXT.LEN(value)

Length of the value converted to text.

Minimal example

value = TEXT.LEN(value)

TEXT.LINE_COUNT

FUNCTIONTEXTBATCH-FRIENDLY
Kind: Function   Category: Text functions   Namespace: TEXT

TEXT.LINE_COUNT(text)

Counts lines in a text block. Empty text returns 0; both LF and CRLF are supported.

Minimal example

value = TEXT.LINE_COUNT(text)

TEXT.LINE_ITEM

FUNCTIONTEXTBATCH-FRIENDLY
Kind: Function   Category: Text functions   Namespace: TEXT

TEXT.LINE_ITEM(text,index)

Returns one zero-based line from a text block. Out-of-range indices return an empty string.

Minimal example

value = TEXT.LINE_ITEM(text,index)

TEXT.LOWER

FUNCTIONTEXTBATCH-FRIENDLY
Kind: Function   Category: Text functions   Namespace: TEXT

TEXT.LOWER(value)

Converts text to lowercase.

Minimal example

value = TEXT.LOWER(value)

TEXT.MID

FUNCTIONTEXTBATCH-FRIENDLY
Kind: Function   Category: Text functions   Namespace: TEXT

TEXT.MID(value,start[,count])

Extracts a substring starting at a given position.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
countOptional parameter. If omitted, the command uses its internal default.

Minimal example

value = TEXT.MID(value,start[,count])

TEXT.REPLACE

FUNCTIONTEXTBATCH-FRIENDLY
Kind: Function   Category: Text functions   Namespace: TEXT

TEXT.REPLACE(value,before,after)

Replaces one substring with another.

Minimal example

value = TEXT.REPLACE(value,before,after)

TEXT.RIGHT

FUNCTIONTEXTBATCH-FRIENDLY
Kind: Function   Category: Text functions   Namespace: TEXT

TEXT.RIGHT(value,count)

Returns the last N characters.

Minimal example

value = TEXT.RIGHT(value,count)

TEXT.STR

FUNCTIONTEXTBATCH-FRIENDLY
Kind: Function   Category: Text functions   Namespace: TEXT

TEXT.STR(value)

Converts the value to string.

Minimal example

value = TEXT.STR(value)

TEXT.TRIM

FUNCTIONTEXTBATCH-FRIENDLY
Kind: Function   Category: Text functions   Namespace: TEXT

TEXT.TRIM(value)

Removes leading and trailing spaces.

Minimal example

value = TEXT.TRIM(value)

TEXT.UPPER

FUNCTIONTEXTBATCH-FRIENDLY
Kind: Function   Category: Text functions   Namespace: TEXT

TEXT.UPPER(value)

Converts text to uppercase.

Minimal example

value = TEXT.UPPER(value)