Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Relational Databases
Expertise: Beginner
Dec 2, 1997

(file)listview

Question:
How can I show the tables in an Interbase database in listview or filelist? (like the database explorer)

Answer:
The only way to do that is as follows: 1) Create an alias that points to the Interbase database. 2) In your program you'll want to use the TSession method GetTableNames (you can look that up in the online help). Hint: the last parameter is a TStrings type, so you can pass an Items property of a listbox into it. Here's an example of how to use the call:

Session.GetTableNames('MyIBDatabase', '', False, True, Listbox1.Items);
This was taken directly from a program that I wrote that lists tables from a SQL Server database, but it'll work for any Server based database.
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date