Substring

Description

Extracts a portion of a string to form a new string.

Syntax

Substring ( str1, start[, length])

Arguments

str1 is the source string,

start is the one-based index into string str1 at which the extraction is to begin, and

length is an integer indicating the number of characters to extract.

Remarks

The length parameter is optional and, if omitted, defaults to the end of str1.