show / hide menu

AddItems

Purpose

The AddItems function adds items to collection controls such as AutoCompleteTextBox, CheckBoxGroup, ComboBox, ListBox, Multi ListBox, and RadioButtonGroup.

Syntax

AddItems(ControlName, Value)

Arguments

1. ControlName – Control name for the items to be added

2. Value – n no: of items to be added

Examples

1. Add a single item

AddItems(ComboBox1, “Black”)

The function will add “Black” as an item to ComboBox1.

2. Add items from another control

AddItems(ComboBox1, ComboBox2)

The function will copy all items from ComboBox2 to ComboBox1.