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:
01403286
Views:
43
>>>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

I could not figure out a way using ADIR to only include directories. Or should I simply use path and check for the 5th element? Assuming many files would it be slower?


>(2) There are other ways to do it iteratively - that's not the problem
>(3) The naming of variables - that's strange
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform