Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Getting Field Description in a Query
Thu, Oct 25 2007 1:50 PMPermanent Link

Gordon Turner
I've been trying to figure this out for a while, and I'm sure I'm
missing something, but I don't know what.  When I examine the FieldDefs
of a TDBISAMTable, I can fetch the extended Description value from
FieldDefs[index].Description.  How can I get the values for the columns
in a TDBISAMQuery?  I see the extended descriptions used in the grid in
the DBSys utility when I execute a query, so I'm guessing it can be
done, but how?

(I'd like to use the query component to help generate a list of data
field descriptions for user selection in various functions.)

--
Gordon Turner
Mycroft Computing
http://www.mycroftcomputing.com
Thu, Oct 25 2007 6:08 PMPermanent Link

Gordon Turner
Forgot to include versions:
  DBISAM 4.25 Build 6
  Delphi 2006 (Turbo)
--
Gordon Turner
Mycroft Computing
http://www.mycroftcomputing.com
Fri, Oct 26 2007 3:54 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Gordon,

<< I've been trying to figure this out for a while, and I'm sure I'm missing
something, but I don't know what.  When I examine the FieldDefs of a
TDBISAMTable, I can fetch the extended Description value from
FieldDefs[index].Description.  How can I get the values for the columns in a
TDBISAMQuery?  I see the extended descriptions used in the grid in the DBSys
utility when I execute a query, so I'm guessing it can be done, but how? >>

You have to use the Origin property of each TField for the TDBISAMQuery to
then go and open the correct table and get the field descriptions.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image