Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with the File Command
Message
From
28/01/2002 06:35:35
 
 
To
28/01/2002 04:35:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00611357
Message ID:
00611424
Views:
20
As Sergey and Cetin said, File() is not reliable.

use following instead
Function	FileExists(FileName)
        declare Integer GetFileAttributes in win32api string @
	return (GetFileAttributes(@FileName) <> -1)
endfunc
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform