Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR()
Message
From
13/11/2000 14:43:26
Gad Hutt
Express Print
Herzliya, Israel
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: ADIR()
Miscellaneous
Thread ID:
00441179
Message ID:
00441191
Views:
28
>>I wnat to use ADIR() in order to get info on my tables.
>>The code line is as follows:
>>gnDbcnumber = ADIR(gaDatabase, GETDIR("import","bla bla...")+"\*.DBC")
>>I get no table data and ofcourse 0 value at the gnDbcnumber variable.
>>When I issue the following: DIR GETDIR("import","bla bla...") I get all the data to the screen, so I ruled out the possibility of the path
Change ".DBC" to ".DBF" unless you really want a list of the Database Containers - which you could then open one at a time and use ADBOBJECTS() to get a fairly comprehensive list of contents. You should also consider storing the return value from GETDIR() to a variable so that you can determine if the User cancelled.

Thank You very much Houston !
I don't remember where I left my Brain this morning :-)
Some Q. are best left "unquestioned", the Q. above was one of those...

Thanks again,
Gadi
Previous
Reply
Map
View

Click here to load this message in the networking platform