ActiveX Array Properties

To see whether an ActiveX property is an array, you can check for a hidden "_newEnum" property.

For example:

local an_array

try(getProperty rListView.ax.listItems #_newEnum; an_array = true)

catch(an_array = false)

Properties which return arrays can be iterated

For example, .listItems in the ListView control, returns IListItems. This can be looped through and also indexed.

for li in ax.listItems do li.bold = true

or

ax.listItems[1].text = "foo"

See also

ActiveX Controls in MAXScript Rollouts