Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Displayed field width in DBF file

10 views
Skip to first unread message

Tran Duy An

unread,
May 15, 2007, 8:46:49 AM5/15/07
to
Hello,

In my program, I created a dBase table from code with a lot of fields of
different field types (ftInteger, ftFloat). When I opened this table in
Excel, the width of the fields were too wide and I had to adjust them so
many times to fix them into the window. I tried to reduced the width by
using precision property as follows, but it did not work:

with FieldDefs.AddFieldDef do
begin
Name := 'TIME';
DataType := ftFloat;
Precision:= 4;
end;

I would be grateful if you could show me how to reduce the displayed field
width.

Regards,
Cocu


0 new messages