Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 To: John McLellan
  Where is John McLellan?
 Birmingham
 United Kingdom
 John McLellan
 Tags
Subject: RE: display tables in database
Thread ID: 143153 Message ID: 143156 # Views: 1 # Ratings: 1
Version: Visual FoxPro 9 Category: Databases, Tables and SQL Server
Date: Saturday, August 25, 2007 12:05:37 PM         
   


> hi, how do i create a listbox to display the tables in a database. The same as the form which pops up when you add tables to a dataenvironment?
>
> TIA
>
> John

You can populate your listbox with adbobjects().

ie:

open database (_samples+'data\testdata')
thisform.addproperty('aTables[1]')
adbobjects(thisform.aTables, 'TABLE')


and bind thisform.aTables to your listbox (or addtiem).
Cetin Basoz

ENTIRE THREAD

display tables in database Posted by John McLellan @ 8/25/2007 11:58:44 AM
RE: display tables in database Posted by Borislav Borissov @ 8/25/2007 12:04:50 PM
RE: display tables in database Posted by John McLellan @ 8/25/2007 12:28:09 PM
RE: display tables in database Posted by Cetin Basoz @ 8/25/2007 12:05:37 PM
RE: display tables in database Posted by John McLellan @ 8/25/2007 12:32:37 PM