Skip to content

Mid Function

Nilesh Ghodekar edited this page Jan 15, 2016 · 4 revisions

Syntax

string Mid(value:string, start:int, length:int)

Description

Returns a specified number of characters from a specified position in a string.

Remarks

As is the case with any other WAL functions, the index is zero-based.

If the second input parameter (start index) or the third input parameter (length) is null, an exception is thrown. If the first parameter value is null or the length of the input string is less than start index, the function returns a null value. If the sum of start index and length parameter is greater than the length of the input string, the entire substring is returned.

Supported Version

1.0.0.0 and later

Examples

Mid([//Target/DN],2,4)

Clone this wiki locally