IR Framework

Shape.SetValue Method

Sets values for a given control.
[object.]SetValue (valArray)

Arguments

object
Required. A Shape object. This can be a CheckBox, RadioButton, TextLabel, TextBox, DropDown, or ListBox.


valArray
Required. An array containing the value(s) to set.

Remarks

If Shape is a CheckBox, RadioButton, TextLabel, or TextBox, only the first value of valArray is used.
The following example uses Shape.SetValue Method to set values in a ListBox:

var oList = ActiveDocument.Sections["Dashboard"].Shapes["lstFoo"];
var arr = new Array("January", "February", "March");
oList.SetValue(arr);

Requirements

ActiveDocument.loadObjectMethods() must be run after the shape object is created and before this object method is used.