I'm using Delphi 6XE, with MySQL as database server.
I have table's fields as shown below
I'm using FireDAC.
I'm trying to implement data validation using TField.CustomConstraint
, so I use the Field Editor to generate TField
descendant objects as shown below
I have setup field's property using Object Inspector
With browsing from Google, and documentation, the authers give example to use like CustomConstraint := 'x>1000';
I tried with x
but all data were not displayed when running the program, so I switched to use field name instead. But anyway I still can input any data I want, no validations were applied at all.
Please advise how to setup data validation in Delphi. Thanks.