Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to retrieve view-names from dbc?

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi,
I know this is possible but don't know the syntax for it.
I like to extract a list with the names of all views which are in a database.
Anyone who can tell me how to?
KR
-Bart
 
Code:
open database ...
adbobjects(laViews,"VIEW")

results in an array of viewnames.

Bye, Olaf.
 
Code:
OPEN DATABASE YOURDB
SET DATABASE TO YOURDB
ADBOBJECTS(laViews,[VIEW])
DISPLAY MEMORY LIKE laViews

Borislav Borissov
VFP9 SP2, SQL Server 2000/2005.
Microsoft MVP VFP
 
Olaf and Bissov, thanks for fast respond!
-Bart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top