Replacing If Exists

D

Deb

I got the following code from Patrick Halstead's "Developing Solutions with
InfoPath," however, it doesn't work in my environment. I guess I need the
VBScript version of it? Can someone help translate this to something that
will work in the Microsoft VB script editor?

function XDocument::OnSubmitRequest(eventObj)
{
Dim submit As DAVAdapter
submit = thisXDocument.DataAdapters.Item("Submit")
If thisFilename Is Nothing Then
thisFilename = submit.FileName
End If
submit.FileName = thisFileName
submit.Submit()
e.ReturnStatus = True

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top