Validating data entries !

i'm entering an value in a Tfield. When I change the value everuthing it'OK, but when the field is empty it dosn't run the ONVALIDATE function to get the items to verify the Tfield variable's value. I have problem at the TField variable VALIDATE.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


What Database are you using?
Youre talking about TField - which development tool are you using?
Sounds like the Tool is Delphi.  If so, what component are you using to enter the data into the TField; TDBEdit?

hi Boldizsar,

if it delphi as mrorph commented, then the event onValidate allways occurs if the Field is edited, also if it changed to empty.

if you want to force, that the field requires a value, then set the property required to true.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.