Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FPD25: IF FILE() will it work or not
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00589099
Message ID:
00589657
Views:
27
The file is not hidden or anything and later I put the directory in the Path and used just the file name and it did not work.

Just want to confirm, this I am running from an EXE. Isnt the EXE supposed to have the reference of the SPR file in it so that I can be run straight, also I believe the FILE() command works for files inside the EXE. and I seriously believe it was working previously.

>Check the file attributes. Maybe it's marked hidden or system?
>Try from command window with harcoded path ? FILE("x"\dir1\subdir\..\screen.spr")
>
>>
>>This is urgent and driving me crazy. The following code
>>
>>
>>	SELECT (m.zsavesele1)
>>
>>	SCAN FOR &ztransfld. = &zourfield.
>>		IF FILE("sprs\" + m.zscrname + ".spr")
>>			DO deleteothers IN (m.zscrname + ".spr")
>>		ENDIF
>>		
>>		
>>		SELECT (m.zsavesele1)
>>		
>>		DELETE
>>	ENDSCAN
>>
>>
>>
>>The IF FILE() works on a PIII 550 W2K Machine and fails
>>on a 486 12MB RAM W98 machine. I tried relative path
>>as specified above as well as IF FILE(m.zscrname + ".spr")
>>but none of them work on the W98 machine
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform