string.mid()

Extracts a substring from a string.

string.mid( start=number, count=number )

Returns: String

Argument Description
start
number, required

The position of the first character to retrieve.

count
number, optional

The number of characters to retrieve. If not set, all characters until the end of the string will be returned.

Examples

str="Hi buddy, Nice day!";
	writeDump(str.mid(4,9));
	writeDump(str.mid(9,1));

See also