D
Dave Jenkins
I am using the vbscript 5.0 regex support - here is a snippet of the code I'm
having problems with:
dim m as integer
dim matched
dim match_coll
Set match_coll = regex.Execute( [some text string] )
' can be multiple matches in a single sentence, if global search...
For m = 1 To match_coll.Count
matched = match_coll(m)
..
..
..
During execution, I get an error on the "matched = match_coll(m)" statement
- it complains:
Runtime error '5':
Invalid procedure call or argument
Apparently it's being caused by the part of the statemnt that reads
"match_coll(m)". I figured that if match_coll were a collection, I should be
able to iterate through it by an index - why can't I? (I know I could "for
each...", but I need to be able to interrupt this loop and restart it from
where it was interrupted - I don't know how to do that with "for each")
Can anyone help? Thanks!
having problems with:
dim m as integer
dim matched
dim match_coll
Set match_coll = regex.Execute( [some text string] )
' can be multiple matches in a single sentence, if global search...
For m = 1 To match_coll.Count
matched = match_coll(m)
..
..
..
During execution, I get an error on the "matched = match_coll(m)" statement
- it complains:
Runtime error '5':
Invalid procedure call or argument
Apparently it's being caused by the part of the statemnt that reads
"match_coll(m)". I figured that if match_coll were a collection, I should be
able to iterate through it by an index - why can't I? (I know I could "for
each...", but I need to be able to interrupt this loop and restart it from
where it was interrupted - I don't know how to do that with "for each")
Can anyone help? Thanks!