The vgLib.setSubstr() system function replaces each character in a substring with a specified character.
vgLib.setSubstr() is one of a number of functions maintained for compatibility with earlier versions. New code can use standard EGL operators for these purposes.
vgLib.setSubstr(
target CharType inOut,
targetSubstringIndex INT in,
targetSubstringLength INT in,
source CharType inOut)
The following example shows the vgLib.setSubstr() function:
target Char(15) = "abcdefghijklm"; // target is "abcdefghijklm "
vgLib.setSubstr(target,2,5," "); // target is now "a ghijklm "