Whilst developing a Windows procedure using JScript, it seems that some string methods fail to work. In this example using trim, line 3 generates the runtime error:
"Object doesn't support this property or method".
My code:
strParent = " a ";
strParent = strParent.trim();
WScript.Echo ("Value: " + strParent);
Am I being stupid? Any ideas what the problem is?