This topic is locked

Type mismatch: 'subMatches'

1/26/2010 11:23:38 AM
ASPRunnerPro General questions
R
robert.williams author

i was wondering if anyone has ever had this happen, I just started getting this error on one of my pages and i cant figure out why.
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'subMatches'
/backlogreport/include/locale.asp, line 318
This is the line.
Set Matches = regEx.Execute(str)

matchesCount = Matches.Count
If matchesCount > 0 Then

set m=Matches(0)

line 318 y = subMatches(0).Value
If matchesCount > 1 Then

mo = m.subMatches(1)

Else

mo = 1

End If

If matchesCount > 2 Then

d = m.subMatches(2)

Else

d = 1

End If

If matchesCount > 3 Then

h = m.subMatches(3)

Else

h = 0

End If

If matchesCount > 4 Then

mi = m.subMatches(4)

Else

mi = 0

end if

If matchesCount > 5 Then

s = m.subMatches(5)

Else

s = 0

End If

else

db2time = arr

exit function

end if
any help or ideas would be greatly appreciated!
Thanks!