Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading file names into tables
Message
From
29/11/2002 11:54:32
 
 
To
29/11/2002 11:48:10
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00728184
Message ID:
00728187
Views:
24
David,

You can read the directory contents into an array using adir() then loop through each row appending the contents to your table.
LOCAL ARRAY laFilename[1]

lnTotalFiles = adir(laFilenames, "*.*")

for lnFile = 1 to lnTotalFiles
   insert into mytable (filename, size, attributes) ;
      values (laFilenames[1], laFilenames[2], laFilenames[5])
endfor
Or something similiar to the snippet above.

HTH
Neil
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform