Page 1 of 1

FieldDefs

Posted: 26.10.2010, 22:11
by vannus
TTable has FieldDefs
TZTable seems to have FieldDefs but they aren't avilable at design-time, and they don't appear to work at run-time either.

unless I'm doing somethjing wrong:-
ztable1.FieldDefs.AddFieldDef.Attributes:=[fahiddencol];
ztable1.active:=true;

the dbgrid stills shows the first column.

Are FieldDefs implemented/supported?

- V

Posted: 26.10.2010, 22:27
by vannus
worked around it thanks to delphi.about.com
you can double-click the TZTable or TZQuery to bring up the FieldDefs editor

perhaps FieldDefs should be added to the published section of TZTable & TZQuery?

- V

Posted: 08.11.2010, 01:11
by mdaems
Can you send the patch?

Mark