I am using Infopath2003 and have a script.vbs file.
I want to utilize SOAP to send data from within the script.vbs. Here's part
of my coding:
'<namespacesDefinition>
XDocument.DOM.setProperty "SelectionNamespaces",
"xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""
xmlns:my=""http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-10-19T20:52:46"" xmlns:xd=""http://schemas.microsoft.com/office/infopath/2003"""
'</namespacesDefinition>
'=======
' The following function handler is created by Microsoft Office InfoPath.
' Do not modify the name of the function, or the name and number of arguments.
'=======
Sub CTRL12_5_OnClick(eventObj)
'Write your code here
Dim oXmlHttp As MSXML2.XMLHTTP 'cant get past this
...
End Sub
I am getting an error message when opening the template that says "Expected
End of statement at Line 22"
Its referring to the "Dim" line.
Is there something I am missing or not doing? I am wondering if i cant do
this in the vbs file and maybe i need to do this in .NET. If so can someone
give me some guidance on that?

Signature
Jeff Reed
S.Y.M. Wong-A-Ton - 24 Oct 2006 06:40 GMT
VBScript does not know typed variables. Change the line into
Dim oXmlHttp
and you should be fine.
---
S.Y.M. Wong-A-Ton
> I am using Infopath2003 and have a script.vbs file.
>
[quoted text clipped - 27 lines]
> this in the vbs file and maybe i need to do this in .NET. If so can someone
> give me some guidance on that?
Jeff - 30 Oct 2006 21:52 GMT
Thanks SYM!

Signature
Jeff Reed
> VBScript does not know typed variables. Change the line into
>
[quoted text clipped - 35 lines]
> > this in the vbs file and maybe i need to do this in .NET. If so can someone
> > give me some guidance on that?