Board index » delphi » Constraints and TTable.Constraints

Constraints and TTable.Constraints

Hi,

        I'm trying to intercept invalid entries in a DBGrid but Delphi
doesn't seem to import the constraints of my Paradox table. Borland
describes the Constraints property as a Boolean that enables this
exchange of parameters. In fact the type of TTable.Constraints is
really TCheckConstraints wich seems to accept an SQL string that
replaces (or adds?) to the table's constraints.

        I've been able to succesfully redefine some of the  original
constraints but the SQL string is limited to 255 characters and I
can't define all the constraints I need. There must be a more elegant
way to "trully" import a table's constraints.

        Thanks for your help.
--
T.H.
med...@thorswill.qc.ca
Invert username and server name for valid email.

 

Re:Constraints and TTable.Constraints


On Fri, 23 Jan 1998 15:04:30 GMT, bo...@email.ext (See signature

Quote
below...) wrote:
>Hi,

>    I'm trying to intercept invalid entries in a DBGrid but Delphi
>doesn't seem to import the constraints of my Paradox table. Borland
>describes the Constraints property as a Boolean that enables this
>exchange of parameters. In fact the type of TTable.Constraints is
>really TCheckConstraints wich seems to accept an SQL string that
>replaces (or adds?) to the table's constraints.

>    I've been able to succesfully redefine some of the  original
>constraints but the SQL string is limited to 255 characters and I
>can't define all the constraints I need. There must be a more elegant
>way to "trully" import a table's constraints.

>    Thanks for your help.
>--
>T.H.
>med...@thorswill.qc.ca
>Invert username and server name for valid email.

Ignore this test!

Other Threads