Axaptapedia is now maintained by AgileCadence For more information please click here.
SubStr function
From Axaptapedia
SubStr[edit]
Syntax <xpp> str SubStr (str _text, int _position, int _chars) </xpp>
Description Returns part of a string _text, starting at _position, for _chars characters.
Example <xpp> SubStr("Sample",4,3); // Returns "ple" </xpp>
Notes No exceptions are thrown for _position being out of bounds or for _chars being out of bounds. Consider the following: <xpp> SubStr("Sample",20,3); // Returns "" SubStr("Sample",4,50); // Returns "ple" </xpp>