IR Framework

Column.toArray Method

The toArray method reads values from one column in a Results or Table into an array.
object.toArray ()

Arguments

object
Required. A Column object.


Remarks

The resulting array contains the list of values sorted alphabetically with duplicates removed.

Example:
//	populate a listbox control from the values in a column
var arr = ActiveDocument.Sections["R-MyResults"].Columns["myColumn"].toArray();
ActiveDocument.Sections["Dashboard"].Shapes["lstMyList"].SetList(arr);


Requirements

ActiveDocument.loadObjectMethods() must be called after the column is created.