Bom dia, Ricardo

Voce quer fazer isso antes ou apos da consulta foi executada?  

Se apos:

for i := 0 to DatasetRetornadoPelaConsulta.FieldCount - 1 do
      SL.Add (DatasetRetornadoPelaConsulta.Fields[i].FieldName) 

Se antes:

como voce decide quais campos a incluir na declaracao SELECT?

Espero que eu compreendam a sua pergunta corretamente . . . . 

Att.
Steve

-----Original Message-----
From: delphi-br@yahoogrupos.com.br
[mailto:delphi...@yahoogrupos.com.br]on Behalf Of Ricardo Mendes
Sent: 17 August 2009 14:52
To: delphi-br@yahoogrupos.com.br
Subject: [delphi-br] Listar campos de Select


Bom dia a todos.
Gostaria de uma ajuda de vcs.

Estou precisando listar os campos que são referentes a um select.

Ex: Select nome, codigo, endereco, status from clientes.
Eu preciso colocar os campos nome, codigo, endereco e status em um stringlist.

Tem como fazer isso?

Att.:

Ricardo Mendes



------------------------------------

-- 
<<<<< FAVOR REMOVER ESTA PARTE AO RESPONDER ESTA MENSAGEM >>>>>





***************************************************************************
This e-mail and any files transmitted with it are confidential. If you are not 
the intended recipient, any reading, printing, storage, disclosure, copying or 
any other action taken in respect of this e-mail is prohibited and may be 
unlawful. If you are not the intended recipient, please notify the sender 
immediately by using the reply function and then permanently delete what you 
have received.
Content of emails received by this Trust will be subject to disclosure under 
the Freedom of Information Act 2000, subject to the specified exemptions, 
including the Data Protection Act 1998 and Caldicott Guardian principles.
This footnote also confirms that, unless otherwise stated, this email message 
has been swept by Sophos Anti-virus for the presence of computer viruses.
***************************************************************************

Responder a