Solved

Getting list of tables from a database

Posted on 2000-05-02
2
118 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Newbie Thread Programming 1 161
Printing problem 2 102
Base1 Encode/Decode 3 82
DBGrid or StringGrid ? 6 105
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

821 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