ui.Combobox.ForName()

 

The ui.ComboBox.ForName() class method is used to search for a ComboBox widget by name in the current form. The found widget will be bound to a ui.ComboBox variable. The method needs only one argument, which specifies the name of the form field. The syntax of the method reference is as follows:

 

ui.ComboBox.ForName("[table.]field_name")

 

The ForName() method is typically used for initializing an object of the ComboBox class. Here is an example of the method usage:

 

DEFINE cbx ui.ComboBox

LET cbx = ui.ComboBox.ForName("place_of_living")

 

After the Combo Box is initialized, it can be referenced by other methods.