title: "StrGetFromIndex" description: TRSE built-in method (from IDE help)
StrGetFromIndex
Systems: C64, MEGA65, PLUS4, C128, VIC20, PET, X16, OK64
Parameters: a, b
StrGetFromIndex( [ input string list ], [ index] );
- [ input string list ] - Input string list separated with #0
- [ index ] - Index of the list
Description
Returns the zero page pointer address to the string at the reqested index.
Example
// Splits "myString" separated by space ($20) to "list"
strsplit(myString,list,key_space);
zp:=strgetfromindex(list,1); // zp (pointer) now points to the second item in the list (0 is the first)