Altova MapForce 2024 Professional Edition

Returns the portion of the string specified by the start and length parameters.

mf-func-substring

 

Languages

Built-in, C++, C#, Java, XQuery, XSLT 1.0, XSLT 2.0, XSLT 3.0.

 

Parameters

Name

Description

string

The input string.

start

Specifies the starting position (index) from which the sub-string should be retrieved. The first index is 1.

length

Optional. Specifies the number of characters to retrieve. If the length parameter is not specified, the result is a fragment starting from start until the end of the string.

 

Example

If the input string is MapForce, start is 1, and length is 3, the function returns Map. If the input string is MapForce, start is 4, and length is not provided, the function returns Force.

© 2017-2023 Altova GmbH