ComboBox.Text
From Xojo Documentation
This item was deprecated in version 2019r2. Please use ComboBox.Value as a replacement. |
Property (As String )
aComboBox.Text = newStringValue
or
StringValue = aComboBox.Text
Supported for all project types and targets.
or
StringValue = aComboBox.Text
Supported for all project types and targets.
Gets or sets the text of the current item. Text is read/write for ComboBox.
Sample Code
This code sets the text of the currently selected item and then displays it in a TextField.
ComboBox1.Text = "Lauraline"
TextField1.Text = ComboBox1.Text
TextField1.Text = ComboBox1.Text