Page 1 of 1

Please help with using constraint

Posted: Wed 28 May 2014 09:22
by jeud
I'm using Delphi 7 and like to migrate from BDE to uniDAC.

I'm trying to setup constraint on TField level, it's used to work on BDE, this is what I have done. Also uniDAC is using standard Delphi's TField descendants I have no ideas what went wrong.

Code: Select all

UniQuery1gender: TStringField;

UniQuery1gender.CustomConstraint := 'x in (''M'',''F'')';
UniQuery1gender.ConstraintErrorMessage := 'Gender must be M/F only';
When the program is running nothing happen, the program is still accept invalid input.

Please help.
Thanks.

Re: Please help with using constraint

Posted: Wed 28 May 2014 11:03
by AlexP
Hello,

Unfortunately, now UniDAC doesn't have such features.
We will investigate the possibility of adding such features in one of the next builds/versions.

Re: Please help with using constraint

Posted: Fri 30 May 2014 01:37
by jeud
Thanks for your reply