addvalue_prime_the_multiselect_dialog_.htm
Navigation: ABC Library Reference > EditMultiSelectClass > EditMultiSelectClass Methods >====== AddValue (prime the MultiSelect dialog) ====== | |
AddValue( item [ ,selected ] )
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
addvalue_prime_the_multiselect_dialog_.htm.txt · Last modified: 2021/04/15 15:56 by 127.0.0.1