Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a method to create a file path from passed string.
Message
 
 
To
18/02/2010 21:37:55
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01449783
Message ID:
01449855
Views:
40
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform