Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List tables
Message
From
16/04/2007 06:54:28
 
 
To
16/04/2007 06:26:41
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01216124
Message ID:
01216141
Views:
14
>i try as..but not work??
>
>SET DEFAULT TO d:\vfpview
>gnDbcnumber = ADIR(tables, '*.dbf')  && Create array
>CLEAR
>FOR nCount = 1 TO gnDbcnumber  && Loop for number of databases
>   ? gaDatabase(nCount,1)  && Display database names
>ENDFOR
>SET DEFAULT TO d:\vfpview
>
>thanks


You are putting the result of ADIR() into a different named array than the one you use to retrieve.
SET DEFAULT TO d:\vfpview
nTablesCount = ADIR(aTables, 'DBF')
CLEAR
FOR nCount = 1 TO nTablesCount
   ? aTables(nTablesCount,1)
ENDFOR


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform