Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FILETOSTR() problems
Message
 
 
To
26/07/2001 12:59:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00535843
Message ID:
00535868
Views:
16
>>>I have a situation where FILETOSTR() sometimes fails. THe call is:
>>>
>>>FILETOSTR("My text", "MyFile.Txt", .F.)
>>>
>>>Any ideas what could cause this to fail?
>>
>>Hi Craig,
>>Because you are passing 3 parameters, I am guessing you're asking about STRTOFILE() and not FILETOSTR(). Having said that, if the file is read-only, it will fail. Also, if using VFP 7 and multiple users attempt to do this at the same time, it could fail.
>>
>>HTH.
>
>
>Yes.. I mean STRTOFILE() *banging forehead on desk*
>
>SAFETY is OFF
>The file is not read only..it was created just moments before.
>
>We have an process that allows the user to import data in a number of formats. The file being imported is run through several validation checks. If the record is rejected, it is appended to an error file. We have another option that allows the user to edit the rejected records. If they then make changes and save the file, it sometimes saves the changes and sometimes doesn't.

Maybe somebody/something else has it open at that time?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform