Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR not retreiving all directory filenames into DBF
Message
From
29/10/2002 12:52:52
Jonathan Cochran
Alion Science and Technology
Maryland, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00715886
Message ID:
00716515
Views:
16
What are the symptoms you are seeing? How many .jpg files are there, and how many are showing up in your array? Do you see any pattern to the ones that aren't showing up in the array?

>Hi Jonathan,
>
>YES
>
>Path is:
>mHomePhotos_PAW = 'H:\HomePhotos_MLS\'
>
>No subdirectories or hidden files to worry about.
>
>Does the number of variables or memory have any thing to do with it?
>
>Thanks
>Roland
>
>=========================================================================
>Does your path end in a backslash? Try:
>>
>>
>>ADIR( aDirJpgFiles, ADDBS(mHomePhotos_PAW) + '*.JPG' )
>>
>>
>>>Hi,
>>>
>>>I seem to be having a problem with retrieving ALL filenames & file info into a Dbf using the ADIR() and APPEND command. I use the following code:
>>>
>>>USE DirPhotos IN 0 ALIAS DP EXCL
>>>SELECT DP
>>>ZAP
>>>
>>>DECLARE aDirJpgFiles(1,5)
>>>ADIR(aDirJpgFiles,(mHomePhotos_PAW)+'*.JPG')
>>>APPEND FROM ARRAY aDirJpgFiles
>>>RELEASE aDirJpgFiles
>>>BROW
>>>
>>>Anyone see any problems with the above code? If so, what would be the proper coding or work around?
>>>
>>>Thanks
>>>Roland
Previous
Reply
Map
View

Click here to load this message in the networking platform