I have this code in VBS:
Dim Arg()
Set objArgs = WScript.Arguments
for i=0 to objArgs.Count
Arg(i) = Replace(objArgs(i),"\n",vbNewLine,1,-1,1)
... (yes, the for has a Next at the end)
(example arguments: "hello\nworld" "test" 0 64
)
But when I run it, it throws an error: The subscript is out of range
(line 4, column 3).
Am I incorrectly using the arrays, or is the problem in the for, or what is wrong?