Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: XE7: TEdit validate input



Permlink Replies: 0 Threads: [ Previous | Next ]
Ronald Klitsche

Posts: 326
Registered: 8/26/01
XE7: TEdit validate input
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 11, 2014 4:48 AM
Hi,

to validate the user input of a TEdit the OnValidate event is triggered.
While raising an Exception in this event, the event will be triggered twice
and the exception message dialog while be shown twice.

Same effect with the OnChange and OnValidating and maybe more.

e.g.:
procedure TForm1.Edit1Validate(Sender: TObject; var Text: string);
begin
raise Exception.Create('an exception text');
end;

This was working in XE6.

Any workaround?

Ronald
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02