Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Could not figure out exactly what this code does
Message
 
 
À
02/06/2009 16:29:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01403230
Message ID:
01403286
Vues:
40
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform