DesktopComboBox.Text

From Xojo Documentation

Revision as of 18:38, 23 July 2021 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. It will go offline as of October 2, 2023. Please visit the new Xojo documentation site! - you will be redirected shortly...

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