Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FDATE() in Runtime
Message
 
To
18/05/2002 09:57:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00658550
Message ID:
00658975
Views:
20
>In a home-grown backup program I have the following lines of code:
>
>
>IF FILE(lcDestFile)		&& File exists
>	IF FDATE(lcSourceFile,1) > FDATE(lcDestFile,1) 	&& date newer in source?
>		* copy source file to destination file
>
>
>Can anyone suggest why they would work fine interactively or run from source code within VFP (7.0 SP1), but the second FDATE() function causes a "File does not exist" error when run from a compiled EXE?
>

Do the values for the lcDestFile and lcSourceFile variables contain the full path? Is the source file contained/built into the exe?

Personally, I do not like to use VFP's FILE() function. Read Message # 611424 for an alternative.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform