SetItemList

Description

Adds a list of items to the object. Note that if you execute this function, the previous items will be cleared from the object, and then the new list of items will be added.

Applies to

PDFFormFieldComboBox object

PDFFormFieldListBox object

Syntax

SetItemList(string itemTextList[])

Argument

Description

itemTextList[]

The list of items.


Return value

None.

Example

The following code example adds four items to the PDFFormFieldComboBox object lpdf_combobox.

string ls_itemtext[],ls_itemname[]
ls_itemtext = {"item1","item3","item4","item2"}
lpdf_combobox.setitemlist(ls_itemtext)

See also

AddItem

GetItemCount

GetItemText

RemoveItem

RemoveAllItem

SetReadOnly

GetReadOnly