MDT 2010 Scripting

joemalder
joemalder used Ask the Experts™
on
What does below means in the MDT 2010 Script:

Function ChangeServerFromSite

      Dim oItem
      dim UpperBound
      dim oServer
      dim Index

      dim oServerList

      if oXMLSiteData is nothing then
            exit function
      end if
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
It is referencing a variable from somewhere else in the script (or workspace) named oXMLSiteData.  When this function executes it first searches for this object, and, checks if it has data. If it does not, it exists the function.  In short, oXMLSiteData is a variable required to have data in order for this function to work.  It's a quick dependency check.

Author

Commented:
Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial