Forum Discussion
nassim
14 years agoOccasional Contributor
Hi,
Thank you for your reply.
In Project Explorer, I chose ODT->CLASSES and defined a class SDP with properties hh and cuts (I found no way to define the types.)
Afterwards, I wrote these two Subs:
Sub createSPArray()
Dim strSPArray
Redim strSPArray(8)
End Sub
Sub populatestrSPArray(i, h)
j = aqConvert.StrToInt(i)
Set testObj = ODT.Classes.New("SDP")
testObj.hh = h
testObj.cuts = Project.Variables.clientTimeStamp
Set strSPArray(j) = testObj
End Sub
In my keyword test, I call these Subs. However, at the line: Set strSPArray(j) = testObj
I become an exception: Laufzeitfehler in Microsoft VBScript
Typen unverträglich: 'strSPArray'Laufzeitfehler in Microsoft VBScript
Typen unverträglich: 'strSPArray'
Does anyone have an idea?
Thanks
Thank you for your reply.
In Project Explorer, I chose ODT->CLASSES and defined a class SDP with properties hh and cuts (I found no way to define the types.)
Afterwards, I wrote these two Subs:
Sub createSPArray()
Dim strSPArray
Redim strSPArray(8)
End Sub
Sub populatestrSPArray(i, h)
j = aqConvert.StrToInt(i)
Set testObj = ODT.Classes.New("SDP")
testObj.hh = h
testObj.cuts = Project.Variables.clientTimeStamp
Set strSPArray(j) = testObj
End Sub
In my keyword test, I call these Subs. However, at the line: Set strSPArray(j) = testObj
I become an exception: Laufzeitfehler in Microsoft VBScript
Typen unverträglich: 'strSPArray'Laufzeitfehler in Microsoft VBScript
Typen unverträglich: 'strSPArray'
Does anyone have an idea?
Thanks