Column.toArray MethodThe toArray method reads values from one column in a Results or Table into an array.object.toArray () Arguments
RemarksThe 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); RequirementsActiveDocument.loadObjectMethods() must be called after the column is created. |