Language Reference Guide : 4. System Classes : ChoiceList Class : AddTextItem Method
 
Share this page                  
AddTextItem Method
The AddTextItem method adds a row to the end of the ChoiceItems array.
This method has the following syntax:
integer = ChoiceList.AddTextItem(enumvalue = integer,
          textvalue = nvarchar)
This method has the following parameters:
enumvalue
Specifies the integer value to insert into the EnumValue column
textvalue
Specifies the associated text to insert into the EnumText column
The AddTextItem method returns the sequence number of the new row in the array.
You can also use the standard array methods for adding rows to the ChoiceItems array. For information about adding rows to an array, see the Programming Guide.
Note:  The AddTextItem method is provided for backward compatibility. New applications should use the AddItem method instead.