Retrieving Other Object Variables
from
Stardock Forums
I'm trying to retrive variable values from each object on my desktop by means of
"For each obj in DesktopX.Objects
MsgBox DesktopX.ScriptObject(obj.Name).objGroupNumber
Next"
The problem I have is that not all of my objects have "objGroupNumber" instantiated. When the for loop reaches an object without "objGroupNumber" instantiated it sends an "Object Required" error. Is there a way to check for object variables such as "IsObject" ?
"For each obj in DesktopX.Objects
MsgBox DesktopX.ScriptObject(obj.Name).objGroupNumber
Next"
The problem I have is that not all of my objects have "objGroupNumber" instantiated. When the for loop reaches an object without "objGroupNumber" instantiated it sends an "Object Required" error. Is there a way to check for object variables such as "IsObject" ?