Question:
Is there any method in Elipse E3 that returns all properties from a certain object?
Solution:
No. To do so, you will have to use a PropEnum ActiveX, which was developed by Elipse Software. To do so, follow these procedures:
1. Extract the attached file PropertyEnum.zip to your computer;
2. On Start–Execute menu, write the following command (setting the file’s path):
regsvr32 C:\PropertyEnum.dll
* If you use a 64-bit version of E3 and want to list the properties of any server object, use PropertyEnum64.dll file:
regsvr32 C:\PropertyEnum64.dll
* If you use Windows Vista or higher, you will need to execute the command on prompt as an administrator, as seen below:
3. Add the following script to the application:
dim a, i, methods, msg, obj
msg = “”
‘Configure the object on the next line:
set obj = Screen
set a = CreateObject(“PropertyEnum.PropEnum.1”)
‘EnumMethods(Object, [ShowNonbrowsable=True], [ShowHidden=False], [ShowRestricted=False])
methods = a.EnumMethods(obj, True, False, False)
for i = LBound(methods) to UBound(methods)
msg = msg & methods(i) & vbNewLine
next
MsgBox msg
NOTE: It’s not possible to enumerate the properties of server objects if the ActiveX is created in the Viewer.
Check for more details on the attached demo application developed with E3 version 3.2 build 260.