Forum Discussion
sachin_kumtheka
11 years agoNew Member
I am having same issue. I am using TC 8.7 and Visual Studio 10.
I have reinstalled the MS script debugger but get same issue "Could not convert variant type (OleStr) to type (Dispatch) on below code:
Dim ObjRegExp, numberStr, strObj1
strObj1 = "12345"
Set ObjRegExp = New RegExp
ObjRegExp.Pattern = "\d+\.\d+"
ObjRegExp.IgnoreCase =True
ObjRegExp.Global =True
Set numberStr =ObjRegExp.Execute(strObj1)
RegExPatternSearch = numberStr(0).Value
Can you check why this is happening? I tried the sample code you have but same issue.
I have reinstalled the MS script debugger but get same issue "Could not convert variant type (OleStr) to type (Dispatch) on below code:
Dim ObjRegExp, numberStr, strObj1
strObj1 = "12345"
Set ObjRegExp = New RegExp
ObjRegExp.Pattern = "\d+\.\d+"
ObjRegExp.IgnoreCase =True
ObjRegExp.Global =True
Set numberStr =ObjRegExp.Execute(strObj1)
RegExPatternSearch = numberStr(0).Value
Can you check why this is happening? I tried the sample code you have but same issue.
Related Content
- 9 years ago
Recent Discussions
- 21 hours ago