Originally Posted By: apronk
Could you add some @error @serror checks in the UDF's ?


Allrightie then.
Found something I guess. Just dunno what to do with it \:\(
Changed the ReadXmlValue UDF and added some error checking.

 Code:
Function ReadXmlValue($xml, $key, optional $defaultValue)
	Dim $sectionNode
	$sectionNode = $xml.SelectSingleNode($key)
	If Not $sectionNode
		??@ERROR
		?@SERROR
		?"Not section node"
		Sleep 0.5
		$ReadXmlValue = $defaultValue
	Else
		??@ERROR
		?@SERROR
		?"Section node"
		Sleep 0.5
		$ReadXmlValue = $sectionNode.FirstChild.Text;
	EndIf
EndFunction


Returs this:
 Code:
-2147352573
Member not found.
Not section node


Edited by Mart (2007-04-20 03:56 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.