Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Getting list of tables from a database

Posted on 2000-05-02
2
Medium Priority
?
125 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 200 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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…
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…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

824 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