SelectSingleNode

R

Ralf Erdmann

Hello,

I try to get values from an optien field into a variable in vbscript.

normally when i need the text out of a textbox I use :

sResult=XDocument.DOM.selectSingleNode(sPath+"SLFP4").text

this works fine.

Now I need the same for Option fields and tried

Result=XDocument.DOM.selectSingleNode(sPath+"SLFP5").value

Result was a failure.

Is there a property which I can use in this case ?

Please excuse my broken english, I´m just a stupid Kraut :)


Ralf Erdmann
 
G

Greg Collins [InfoPath MVP]

You are mixing HTML DOM and InfoPath DOM... You should only need to use the .text property to get the value of a DOM node.

sResult=XDocument.DOM.selectSingleNode(sPath+"SLFP5").text
 

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