| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > EditMultiSelectClass > EditMultiSelectClass Methods >====== AddValue (prime the MultiSelect dialog) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[editmultiselectclass functional organization expected use.htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[createcontrol create the edit in place control editmultiselectclass .htm|{{btn_next_n.gif|Next page}}]] | | || **AddValue( **//item //[ //,selected// ]// //**)** {{blk2blue.jpg|blk2blue.jpg}} | **AddValue** | Primes the Available and Selected items lists in the MultiSelect dialog. | | //item// | A string constant, variable, EQUATE, or expression that contains the value to add to the item list. | | //selected// | An integer constant, variable, EQUATE, or expression that indicates which list to update. A value of zero (0 or False) adds the //item //to the Available Items list; a value of one (1 or True) adds the //item //to the Selected Items list. If omitted, //selected //defaults to zero and AddValue adds the //item //to the Available Items list. | The **AddValue **method primes the Available and Selected items lists in the MultiSelect dialog. **Example:** **Edit:PR:ApplyTo.Init PROCEDURE(UNSIGNED FieldNumber,UNSIGNED ListBox,*? UseVar)** **  CODE** **  PARENT.Init(FieldNumber,ListBox,UseVar)** **  SELF.Reset** **  SELF.AddValue('Browse',INSTRING('Browse',SELF.UseVar,1,1))  !set multi-select choice** **  SELF.AddValue('Form',INSTRING('Form',SELF.UseVar,1,1))      !set multi-select choice** **  SELF.AddValue('Report',INSTRING('Report',SELF.UseVar,1,1))  !set multi-select choice** **  SELF.AddValue('Window',INSTRING('Window',SELF.UseVar,1,1))  !set multi-select choice**