ui.ListBox.GetTextOf()

ui.ListBox.GetTextOf() returns the text of the specified list box option.

CALL <lbx_var>.GetTextOf(<value>)

Arguments

value

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

Usage and examples

Takes one argument - the value of the list box option:

CALL lbx.GetItemText(value3)

This argument can be STRING, INTEGER, BOOLEAN, or of other type that is available for list box options:

CALL lbx.GetItemText(3)

CALL lbx.GetItemText("value3")

You can pass a variable as an argument for ui.ListBox.GetTextOf() (see example program, ui.ListBox.GetTextOf):

LET input_var=fgl_winprompt(5,3,"Enter the option's index (Example: 3).","",25,0)

IF input_var IS NOT NULL THEN

  DISPLAY "Output for getTextOf(): ",lbx.GetTextOf(input_var),"."

END IF

To get correct results, ensure that the value of your variable conforms with the rules for the declared data type.

 

If you enter the wrong value, ui.ListBox.GetTextOf() will return you an empty value (see example program, ui.ListBox.GetTextOf):

If you do not pass any arguments to ui.ListBox.GetTextOf(), you will get a runtime error – 9107. Wrong number of input parameters.

 

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.