Hi All, I have created a tool to check the installed core application details on machine. Previously it was working fine. But i have added new function to my code and i am facing the error message "Error: Subscript used with non-Array Variable". on the below loop. can some one help me on this? If $Excel = 1 Then $numberOfChannels = _XMLGetNodeCount("/root/Office") For $s = 1 To $numberOfChannels Step +1 $Comment = _XMLGetChildText("/root/Office[" & $s & "]/Name") $RegKey = _