Server.RootObject

The RootObject property is a server property that represents the top level item in the database.

Syntax

Server.RootObject

Description

Represents the top level of the database (the Root of the database).

Arguments

None.

Returns

ServerObject

A ServerObject is a Geo SCADA Expert specific script object that has its own functions (see ServerObject Functions ) and properties (see ServerObject Properties) which can be manipulated.

Example:

The following script is used to display a message box that contains the name of the root object:

Set ServerRoot = Server.RootObject

MsgBox ServerRoot.Name

Where:

  • ServerRoot is the name of the variable used to store the ServerObject that is returned by the RootObject property.
  • MsgBox ServerRoot.Name instructs the script to display a message box that contains the Name value of the ServerObject that is stored by the ServerRoot variable (this is the ServerObject that is returned by the RootObject property).