Cicode Programming Reference > Cicode Function Categories > Form Functions > FormAddList

FormAddList

Adds a text string to a list box or combo box. You should call this function only after the FormNew() function, and immediately after either the FormComboBox() or the FormListBox(), and before the FormRead() function otherwise an error is returned. The text is added at the end of the list box or combo box.

To add text to a form that is already displayed, use the FormListAddText() function, and use the FormListSelectText() function to highlight text on the list.

Syntax

FormAddList(sText)

sText:

The text string to add to the list box or combo box.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

FormNew, FormRead, FormListBox, FormComboBox, FormListAddText, FormListDeleteText, FormListSelectText

Example

See FormComboBox and FormListBox

See Also

Form Functions

Published June 2018