Pep Posted January 23, 2019 Share Posted January 23, 2019 Hello, How can I get the text that a user has recently written in a Combobutton in the form UniForm1.TextEdit Sample: I have try procedure TMainForm.UniComboBox3TriggerEvent(Sender: TUniCustomComboBox; AButtonId: Integer); begin if AButtonId = 1 then begin UniDBGrid1.CancelEditing(True); UniForm1.UniEdit1.Text := Sender.Text; // Doesn't work UniForm1.ShowModal(GridCallBack); end but doesn't work. Thanks a lot. Quote Link to comment Share on other sites More sharing options...
GerhardV Posted January 23, 2019 Share Posted January 23, 2019 It works for me: procedure TMainForm.UniComboBox1TriggerEvent(Sender: TUniCustomComboBox; AButtonId: Integer); begin if AButtonId = 1 then begin ShowMessage(Sender.Text); end; end; By the way if I copy this line from your code above and paste it I noticed that there are strange characters just after the "d" in Sender and just before the two slashes. see picture. Try and delete the code and type from scratch. You probably copied it from somewhere on the forum, I have noticed the issue with the new forum. UniForm1.UniEdit1.Text := Sender.Text; // Doesn't work Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted January 23, 2019 Share Posted January 23, 2019 @Gerhardv It message codepage is diffrent. for test, use notepad++ also you can use for convert codepage Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 23, 2019 Share Posted January 23, 2019 50 minutes ago, GerhardV said: It works for me I think, He means when combobox is as editor Quote Link to comment Share on other sites More sharing options...
Pep Posted January 23, 2019 Author Share Posted January 23, 2019 1 hour ago, Sherzod said: I think, He means when combobox is as editor Yes, it doesn't work when is in Grid Editor. In standard mode it works. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.