DesktopComboBox.Text

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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