property Required

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
md
Posts: 2
Joined: Tue 15 Jan 2008 09:54

property Required

Post by md » Tue 15 Jan 2008 10:03

Hello,

I try to get fields information from a MySQL table with a TMyTable object.
I correctly get Name, Size, Type... but not Required property :shock:

Code: Select all

myTable.FieldDefs.Items[i].Required
It always return False ! whereas I have fields with "NOT NULL" checked in my table.

MySQL server version 5.0.37
MyDAC 5.20.0.13 for Delphi 7

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 16 Jan 2008 13:46

Set the TMyTable.Options.RequiredFields property to True if you want the Required property of FieldDefs objects to be properly initialized.

md
Posts: 2
Joined: Tue 15 Jan 2008 09:54

Post by md » Wed 16 Jan 2008 16:35

It's good :)
Very thanks !

Post Reply