Field Title Description URGENT

Forum related to Firebird

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
sfxcc
Senior Boarder
Senior Boarder
Posts: 95
Joined: 13.05.2010, 18:48

Field Title Description URGENT

Post by sfxcc »

How can i create field description , or title for each field on firebird.
And how can i get it ... i suppose it is with metadata but dont undestand meta data yet

What i want to do is :

When i assign to a dbgrid a dataset want to set a readable name on title and not the fieldname...

In case off "CL_CLIENTES" i want "NOME CLIENTE" in dbgrid Caption Title and not "CL_CLIENTES"

So there exist anything similar to this
CREATE TABLE CLIENTES(CL_ID,CL_CLIENTES description "NOME CLIENTE" bla bla )


Does zeus already does this for me ?????

. :?: .. ????
:prog2:


:thanks:
where's the code ..
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Code: Select all

select cl_clientes as "Nome Cliente" from clientes
should do the job. "AS" is optional.
Image
sfxcc
Senior Boarder
Senior Boarder
Posts: 95
Joined: 13.05.2010, 18:48

Tilte

Post by sfxcc »

Thanks for your answer.


The problem is i have a ztable and a dbgrid.
and i wanna do ztable.open. and the db grid title dont be the field name and "i dont wanna do it manualy on dbgrid".

I want to save it on db with the field.

Like create table ( myfield integer "mydecription",....);

and get it with metadata or so thing??

ant least to do
for aa:= 0 to ztable fieldcount-1 do
begin
dbgrid.columns[aa].title.caption := ztable.metadata.field[aa].description; witch is "mydescripton" on the create table.
end;

Any one have an idea to do similar to this this ????

:idea: :thanks:
where's the code ..
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

I'm afraid this can't be done with zeoslib 'out of the box'.

Mark
Image
sfxcc
Senior Boarder
Senior Boarder
Posts: 95
Joined: 13.05.2010, 18:48

Post by sfxcc »

Ok this solved tehre is a fb SQL command witch is COMMENT so comment fields
where's the code ..
Post Reply