DesktopComboBox.Text

From Xojo Documentation

Property (As String )
aDesktopComboBox.Text = newStringValue
or
StringValue = aDesktopComboBox.Text

New in 2021r3

Supported for all project types and targets.

Gets or sets the value of the current item. Text is read/write for DesktopComboBox.

Sample Code

This code sets the value of the currently selected item and then displays it in a DesktopTextField.

ComboBox1.Text = "Frodo"
TextField1.Text = ComboBox1.Text