Page 1 of 1

property Required

Posted: Tue 15 Jan 2008 10:03
by md
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

Posted: Wed 16 Jan 2008 13:46
by Dimon
Set the TMyTable.Options.RequiredFields property to True if you want the Required property of FieldDefs objects to be properly initialized.

Posted: Wed 16 Jan 2008 16:35
by md
It's good :)
Very thanks !