ui.ListBox.SetListBoxValues()

ui.ListBox.SetListBoxValues() renames the list box options.

Syntax

CALL <lbx_var>.SetListBoxValues("text")

Arguments

text

text of the list box option (STRING, INTEGER, BOOLEAN, or other type)

Usage and examples

Takes one argument - the text for the new list box option:

CALL lbx.SetListBoxValues("new_text")

You can also pass an array as the argument to ui.ListBox.SetListBoxValues():

CALL lbx.SetListBoxValues(["new_text1", "new_text2", "new_text3"])

 

Results of ui.ListBox.SetListBoxValues() depend on how many options your list box has originally included and how many texts you change by the method:

If you do not pass any arguments to SetListBoxValues(), you will get a runtime error - 9107. Wrong number of input parameters:

CALL lbx.SetListBoxValues()

 

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.