Hi, Folks!
I am trying to use a to use a COM object written in VB6.
Set oSCNTool2 = CreateObject("SomeCompanyName.Tool2")
This COM object has a property called "xml" where it expects, you
guessed it, an XML string. Well, it turns out it's just expecting a
plain string and not any special XML node or what-have-you. The
problem is when I try to assign a string to this property I get a Type
Mismatch error.
oSCNTool2.xml = szXMLdata 'type mismatch error
The problem is VBScript deals in Variants and VBS strings are of the
Variant String subtype. This "xml" property is expecting the VB6
String variable type and not a Variant subtype. I do not have access
to the source code of the COM object to change it.
Does anyone know how to work around this issue?
TIA...