Freshman
Registered User.
- Local time
- Today, 02:02
- Joined
- May 21, 2010
- Messages
- 437
selectSingleNode
Hi all,
I'm getting a "Object variable or with bock variable not set" error in the
"If xml_doc.selectSingleNode("//api_result/call_result/result").Text = "True" Then" line for the code below.
I'm not getting this in A2003 - only my PC running A2013.
I'm referencing to Microsoft XML, v6.0
Hi all,
I'm getting a "Object variable or with bock variable not set" error in the
"If xml_doc.selectSingleNode("//api_result/call_result/result").Text = "True" Then" line for the code below.
I'm not getting this in A2003 - only my PC running A2013.
I'm referencing to Microsoft XML, v6.0
Code:
Dim xml_doc As New DOMDocument
Dim nde_Asset As IXMLDOMNode
Dim nde_Dividend As IXMLDOMNode
xml_doc.Loadxml (oHttp.ResponseText)
If xml_doc.selectSingleNode("//api_result/call_result/result").Text = "True" Then
SMSCredits = CDbl(xml_doc.selectSingleNode("//api_result/data/credits").Text)
Else
MsgBox "A SMS account has not been created for you. Kindly notify us about this", vbCritical, "Notice"
SMSCredits = ""
Exit Sub
End If
Last edited: