Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

Commented Issue: VBScript engine reports wrong line number on error [24]

$
0
0
An error in the 1st line is reported as being in line 0
An error in the 2nd line is also reported as being in line 0
And error in the 3rd as line 1
And then it increments as you would expect 2,3,4 ...

The JS engine is OK this is only in the VBScript engine.
Comments: When i tested this with Dim x xxx It reports line 0 When it tested with Dim x X= 1 xxx It reports line 0 I tried a combination of blank lines this did not appear to make a difference I am trying to trap the error and display preceding couple of lines and couple of lines after with a pointer to the failed component. So retrieving the line number and column from the message detail works if it is consistent.

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images