VGJ0202E: String function setNullTerminator failed
with error code 16.
Explanation
The last byte of the
target string must be a blank or null character.
User Response
Do as follows:
- Change the program logic to ensure that the last byte of the target string
is a blank or null character; 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.