Please help with using constraint

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jeud
Posts: 2
Joined: Wed 28 May 2014 09:14

Please help with using constraint

Post by jeud » Wed 28 May 2014 09:22

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.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Please help with using constraint

Post by AlexP » Wed 28 May 2014 11:03

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.

jeud
Posts: 2
Joined: Wed 28 May 2014 09:14

Re: Please help with using constraint

Post by jeud » Fri 30 May 2014 01:37

Thanks for your reply

Post Reply