Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR Doesn't Respect Arrays
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00265065
Message ID:
00265077
Views:
20
>>
>>        nNumFiles = adir(arFileList,'e:\src\projects\t1\*.*')	
>>
>>
>>It works fine, but I can't hardcode my paths. Help?
>
>Is it possible that the array element has not been alltrimed. I attempted similar code and it worked fine.
>
>
>DIMENSION aFileDir[1]
>aFileDir[1] = "c:\temp"
>?ADIR( aFileList, aFileDir[1] + "*.*" )
>
>
>Returns 10 on my machine.


Yes, it was an alltrim adir thing. I told you my code was stinky. :)
Previous
Reply
Map
View

Click here to load this message in the networking platform