On Sat, 24 Jan 2009, vmars wrote:

> (Lazarus-0.9.26-fpc-2.2.2-win32.exe) winXP sp2
> I am trying to SaveToFile a Memo1 to disk.
> But can't seem to get it to work.
> Is there a known bug?
> 
>            Try
>            Memo1.Lines.SaveToFile(ExecuteName);
>            Except ShowMessage('Shoots, couldnt SaveToFile!');
>            end;
> 
> [Project raised exception class 'EFCreateError' with message:
> Unable to create file
> ""C:lazarusfpc2.2.2bini386-win32Del2PasDel2PasDel2Pas.bat""]

I don't know why the backslashes are gone, but the fact that it shows
double quotes twice is definitely weird. I don't think windows
allows to use filenames with double quotes in it. 

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to