string.mid()

edit

Extracts a substring from a string.

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

Returns: String

Argument Description
start
number, required
edit

The position of the first character to retrieve.

count
number, optional
edit

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

Examples

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

See also