Solved

simple database question

Posted on 2006-11-21
1
191 Views
Last Modified: 2010-04-04
hi guys,

I have an ADO application with an MsAccess and I want to add the table fields name to a listbox... Any ideas?

best regards
Manuel Lopez (lopem)
0
Comment
Question by:lopem
1 Comment
 
LVL 15

Accepted Solution

by:
mikelittlewood earned 70 total points
ID: 17988726
procedure TForm1.Button1Click(Sender: TObject);
var
  slTemp: TStringList;
begin
  slTemp := TStringList.Create;
  try
    ADOQuery1.Open;
    ADOQuery1.GetFieldNames( slTemp);

    ListBox1.Items.Assign( slTemp);
  finally
    FreeAndNil( slTemp)
  end;
end;
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question