07-25-2012 05:35 PM
Is there a way to traverse all the variables under FileGlobals as key and value pair? I'm having trouble finding a function that will give me all the variable names for PropertyObject.
Solved! Go to Solution.
07-26-2012 08:52 AM
First of all I'm confused by your "key and value pair" statement. What did you mean by that?
Secondly you can use: FileGlobals.GetNthSubPropertyName("", N, 0) to get the name of the sub property. N is the index.
Here is from the help:
PropertyObject.GetNthSubPropertyName ( lookupString, index, options)
Name of the subproperty the index specifies.
Returns the name of a subproperty within the property the lookupString parameter specifies.
lookupString As String
[In] Pass an empty string to denote the PropertyObject to which the method applies, or pass the name of a subproperty within the PropertyObject. Refer to Lookup Strings for more information about the strings you can use.
index As Long
[In] Pass the zero-based index of the subproperty.
options As Long
[In] Pass 0 to specify the default behavior, or pass one or more PropertyOptions constants. Use the bitwise-OR operator to specify multiple options.
GetNumSubProperties is also a good method to use. Just call FileGlobals.GetNumSupProperties("").
Hope this helps,