Print Page | Close Window

getting combo text

Printed From: TMS Software
Category: FMX Components
Forum Name: FMX mCL
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=3109
Printed Date: 26 Jan 2020 at 9:45pm


Topic: getting combo text
Posted By: Shelton Brent
Subject: getting combo text
Date Posted: 21 Oct 2013 at 10:13pm
How do i get the text that a user types in the combo?  This is not an existing item.

Thanks,
Brent



Replies:
Posted By: Pieter Scheldeman
Date Posted: 22 Oct 2013 at 2:31am
Hi, 

This is not exposed yet on NSComboBox level but you can get the value with the following code:

var
  str: String;

str := UTF8ToString(TMSFMXNativeNSComboBox1.ComboBox.stringValue.UTF8String)

Kind Regards, 
Pieter



Print Page | Close Window