Skip to content

Substring

Shaun Lawrence edited this page Nov 2, 2022 · 3 revisions

Returns a section of the supplied text between the startIndex and then using the length.

Substring(text, startIndex, length)

Parameters

text

The string text containing the section to return.

Type string
Required Yes

startIndex

The starting position of the text to return.

Type int
Required Yes

length

The length from the starting position to return.

Type int
Required Yes

Examples

Substring("Read between the lines", 13, 3)

Returns the in this example.

Clone this wiki locally