Data Property (Struct Object)

Object: Struct Object

Access: Read/Write

Sets or returns an object.

Usage

Stuct.Data (ByVal Name As String) = Object

Arguments

Name

A string that contains the key/name.

Return Values

Object. The object associated with key/name.

Examples

To store a global object:

Set Scripting.Globals(“MyGlobalObjName”).Data = myObj 
 

To output the global object’s name:

MsgBox Scripting.Globals("MyGlobalObjName").Name  
’ Returns the value of myObj.Name