Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Accessing DESCRIPTION of FIELD from an application
Tue, Jul 5 2011 6:42 AMPermanent Link

Adam Brett

Orixa Systems

In EDB it is possible to define a column with a DESCRIPTION:

CREATE TABLE Test
CREATE COLUMN "Test" VARCHAR(20) DESCRIPTION 'this is a test column'

I would like to use the description and access it in my executable as a fly-over hint, to help users to understand the purpose of  fields.

However I can't see a way of retrieving it ... I had hoped it might exist as a property on the TFields member:

Query.FieldByName('Test').Description //or similar.

... can I access it & how?
Tue, Jul 5 2011 6:56 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Adam


You need to query the information  tables

SELECT Description FROM information.TableColumns WHERE TableName = 'xxx' AND Name = 'yyy'

Roy Lambert [Team Elevate]
Tue, Jul 5 2011 9:26 AMPermanent Link

Adam Brett

Orixa Systems

Brilliant Roy, thanks!
Image