Premise Enumerate properties on an object?

Motorola Premise

ckindel

Member
Is it possible to iterate over an object enumerating its properties?
 
I'm writing a script that will dump the contents of my security zones and to reduce the chance for transcription errors I want the script to generate the 'rows' with code (there are dozens of properties on a Caddx security zone).
 
 
 
Figured it out: .GetProperties. Duh.
 
However, I found that on objects in the devices tree attempting to get the "Bindings" property fails with 'object required'.
 
I had to do this:
 
for each prop in objZone.GetProperties()
  if prop.Name <> "Bindings" then
    value = objZone.GetPropertyAsText(prop)
    line = line + value + ","
  end if
next
 
Back
Top