Page 1 of 1

VBScript error matching

Posted: Wed Dec 12, 2001 6:22 pm
by Alex
Hi, I need to figure out how to make TextPad jump to source from VBScritpt (cscript) error output.

The typical error message look like this:
C:\path\to\file\test.vbs(2, 1) Microsoft VBScript runtime error: Object required: 'WS'

Thanks for any clues,
Alex.

Re: VBScript error matching

Posted: Thu Dec 13, 2001 7:42 am
by Ed Orchard
Assuming the line of the error is given by the 2 and the column by the 1
the RE:
^\([^(]+\)(\([0-9]+\),[[:space:]]*\([0-9]+\))
should do the trick with File = 1, Line = 2 and col = 3