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

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

task main()
{
string msgs[] = {"please work", "testing, 1, 2, 3"};
NumOut(0, LCD_LINE5, StrIndex(msgs[0], 0));
string msg = "hi there";
byte x = StrIndex(msg, 2); // return the value of msg[2]
}