The error is coming from the next line, which looks like it was from JScript. VBScript has functions like SubStr(...), not object methods like x.Substring(...)
The error is coming from the next line, which looks like it was from JScript. VBScript has functions like SubStr(...), not object methods like x.Substring(...)