Edit

Share via


TextConst.Substring(Integer [, Integer]) Method

Version: Available or changed with runtime version 15.1.

Retrieves a substring from this instance.

Syntax

Substring :=   TextConst.Substring(StartIndex: Integer [, Count: Integer])

Parameters

TextConst
 Type: TextConst
An instance of the TextConst data type.

StartIndex
 Type: Integer
The one-based starting character position of a substring in this instance.

[Optional] Count
 Type: Integer
The number of characters in the substring.

Return Value

Substring
 Type: Text
The substring extracted from this instance.

See Also

TextConst data type
Getting started with AL
Developing extensions