Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about File() fundtion
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00891861
Message ID:
00891867
Views:
18
Steve,

Let me answer your question from a different angle.
If your goal is to make sure that use a unique file name, try using
sys(2015) as in
local lcfilename
m.lcfilename = sys(2015)
*create the file 
if file(m.lcfilename) ;
then 
   * do something
else 
   * do something else 
endif 
hope this helps.

In my experience, file() function is pretty fast on local drive. Now if have included a path in the parameter of the function, which has a newwork drive, it may take longer, especially when the connection to that drive hasn't been active for some time.

Dawa
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform