SubStr function

SubStr
Syntax str SubStr (str _text, int _position, int _chars)

Description Returns part of a string _text, starting at _position, for _chars characters.

Example SubStr("Sample",4,3); // Returns "ple"

Notes No exceptions are thrown for _position being out of bounds or for _chars being out of bounds. Consider the following: SubStr("Sample",20,3); // Returns "" SubStr("Sample",4,50); // Returns "ple"