Page 1 of 1

Validate Input

Posted: Wed 24 May 2006 11:29
by Guest
Hi there,

got a question about validatin an tdbedit field.
I have an editField thats bound on an integer-field in the database.

When entering an invalid integer-value like '11-22', after leavin the field MyDac come up with the message '11-22 is not a valid integer'.

I want to be able to handle this error-messages by myself, but don't know how, because the 'onExit'-event occurs after the mydac-validation.

thx for help,
ben

Posted: Thu 25 May 2006 09:07
by Antaeus
The data aware component calls the method SetEditText of TField to set data, but before setting text, TField raises event OnSetText. Possibly handling this event will solve this problem.