NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
ex_SubStr.nxc

This is an example of how to use the SubStr function.

task main()
{
string msgs[] = {"please work", "testing, 1, 2, 3"};
TextOut(0, LCD_LINE2, SubStr(msgs[0], 2, 3));
string msg = SubStr("test", 1, 2); // returns "es"
}