Language Reference Guide : System Classes : ChoiceList Class : AddBitmapItem Method
 
Share this page          
AddBitmapItem Method
The AddBitmapItem method adds a ChoiceBitmap row to the end of the ChoiceItems array.
This method has the following syntax:
integer = ChoiceList.AddBitmapItem(enumvalue = integer,
          textvalue = nvarchar, bitmapvalue = BitmapObject)
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
bitmapvalue
Specifies the associated bitmap image to insert into the EnumBitmap column
The AddBitmapItem 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 a bitmap image to a palette field, see the Programming Guide.
Note:  The AddBitmapItem method is provided for backward compatibility. New applications should use the AddItem method instead.