Hi,
I am using VBScript to perform some simple XML DOM programming.
I'd basically like to know if there is any way of testing if an object returned from a function call is null?
For example, if I have the following pseudo code:
Dim theObject
Set theObject = xmldoc.selectSingleNode(XPath_string)
if theObject is null then
'do some code if the returned object is null
else
'continue as normal
end if
Are there any functions that test if the 'theObject' is null? I've tried isNull but it doesnt appear to work for objects.
Any help is appreciated, thankyou.
MrPeds
I am using VBScript to perform some simple XML DOM programming.
I'd basically like to know if there is any way of testing if an object returned from a function call is null?
For example, if I have the following pseudo code:
Dim theObject
Set theObject = xmldoc.selectSingleNode(XPath_string)
if theObject is null then
'do some code if the returned object is null
else
'continue as normal
end if
Are there any functions that test if the 'theObject' is null? I've tried isNull but it doesnt appear to work for objects.
Any help is appreciated, thankyou.
MrPeds