strSubString function


strSubString String

String strSubString (String input, Integer start, Integer length)

Returns the portion of input.

Parameters:

input

The input string

start

The index of the first character in the substring

length

The number of characters to return in the substring

Returns:

A substring of the original string

Example:

str = "This is an example string"
str2 = strSubString(str, 11, 7)

// str2 is "example"

Related topic

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*