Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从 a 中获取选定的值TComboBox?
TComboBox
名字TCombobox是comboTest
TCombobox
comboTest
vaue_is := comboTest ???
您可以使用 ItemIndex:
if comboTest.ItemIndex >= 0 then vaue_is := comboTest.Items[comboTest.ItemIndex];
这对于 VCL 和 FireMonkey (FMX) 应该同样适用。