Solved

Getting list of tables from a database

Posted on 2000-05-02
2
117 Views
Last Modified: 2010-04-04
How do I get the list of tables from a database?
0
Comment
Question by:bcoleman
2 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 50 total points
ID: 2770707
See the TSession.GetTableNames method. This method will fill a pre-existing string list object with the names of the tables in the database specified in the DatabaseName argument.
 
  Session.GetTableNames('DBDEMOS', '*.db', True, False, ListBox1.Items);
 
The DatabaseName property can be the name of a BDE alias, a string containing a driver/directory (local table types, only), or the value in the DatabaseName property of a properly connected TDatabase component.
0
 
LVL 1

Author Comment

by:bcoleman
ID: 2770863
Thanks for the help!!!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
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…

816 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now