Section.getValues MethodThe getValues method reads values from one column in a Results or Table into an array.object.getValues (columnName) 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"].getValues("myColumn"); ActiveDocument.Sections["Dashboard"].Shapes["lstMyList"].SetList(arr); RequirementsActiveDocument.loadObjectMethods() must be called after the Result/Table is created. |