Explanation
The index must be between
1 and the length of the string.
User Response
Do as follows:
- Change the program logic to ensure that the index-related argument to
the function ranges between 1 and the length of the string; or
- Call the function in a try statement, or set vgVar.handlesysLibraryErrors
to 1 before calling the function, so that the program can handle the error.