TextConst.Remove(Integer [, Integer]) Method

Version: Available or changed with runtime version 15.1.

Returns a new Text in which a specified number of characters from the current string are deleted.

Syntax

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

Parameters

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

StartIndex
 Type: Integer
The one-based position to begin deleting characters.

[Optional] Count
 Type: Integer
The number of characters to delete.

Return Value

Result
 Type: Text
The end result Text.

See Also

TextConst data type
Getting started with AL
Developing extensions