Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need a method to create a file path from passed string.
Message
 
 
À
18/02/2010 21:37:55
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01449783
Message ID:
01449855
Vues:
41
>>Safer? What exactly would that mean in this case? it's easy enough to put a Try/Catch around it should there be errors ... what else would one be protecting against?
>
>The case when there may already be a file, potentially with nasty attributes (hidden, protected, system), name of which may collide with the attempted directory name.
>
>Just try
>
c="some.tmp"
>strtofile("whatever", c)
>md (c)
>Not tested, but I guess you wouldn't get an error, yet your directory wouldn't be created.

It gives an error.
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