Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting Table Names

0 views
Skip to first unread message

Gary Ostroff

unread,
Nov 11, 2002, 4:30:39 PM11/11/02
to
Hello:

I have connected to an Access database through my Delphi6 application.
The connection works fine, but I want to create a drop-down list that
shows all the individual tables in the *.mdb file. I'm using the
following code:

procedure TDataEditForm.FormShow(Sender: TObject);
var
SL:TStrings;
begin
SL:=TstringList.create;
DataEditForm.ADOTable1.Connection.GetTableNames(SL,False);
end;

I expected to use the string-list (SL) to populate the drop-down
listbox, but the application freezes. I must be doing something
rather simple incorrectly.

Cheers!
Gary Ostroff

0 new messages