Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dir command and full file names
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00756815
Message ID:
00757287
Views:
12
>I had never used arrays in vfp before. But the manual does help. Thanks
>set safe off
>create table test free (name c(100) )
>
>DIMENSION laList[1]
>lcDir = "C:\d\tax\tax\"
>lnFiles = ADIR(laList, lcDir + "*.*")
>
>use test
>appe from array laList
>brow

You can do this way or you can loop through array.
FOR i=1 TO ALEN(laList,1)
  lcFileName = laList[i,1]
  * Process a file
  ...
EMDFOR
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform