invalid procedure call or argument left
asp-classic, vbscript
Solution
If `i` is equal to zero then this will call `Left()` with `-1` as the `length` parameter. This will result in an `Invalid procedure call or argument` error. Verify that `i >= 0`.
Problem
I am facing the following error: ``` Microsoft VBScript runtime error '800a0005' Invalid procedure call or argument: 'left' /scheduler/App.asp, line 16 ``` The line is: ``` point1 = left(point0,i-1) ``` This code works perfectly in another server, but now on another server it is showing this error. I can guess it has to do with system or IIS settings or may be something else but its nothing with code (as its works fine in another server).