Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Could not figure out exactly what this code does
Message
 
 
To
02/06/2009 16:29:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01403230
Message ID:
01403374
Views:
56
>>>IC - wierd construct with Set Default on each iteration
>>>_
>>
>>I believe it's non-recursive solution of a recursive problem thus very hard to understand. Also the naming convention makes it harder, IMHO.
>>
>>It's a framework class code, BTW, but I ran into the problem when user stored images under the application folder in hundreds of subfolders and the SET PATH command was breaking.
>
>Well, whatever
>
>(1) I never, ever change set default - strange side effects may occur
>(2) There are other ways to do it iteratively - that's not the problem
>(3) The naming of variables - that's strange

Let me re-phrase the question.

How would you get an array of directories only without switching path?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform