Issue with trying to save an html file
David Thompson
dthmpsn1 at uiuc.edu
Sun Feb 3 07:17:02 PST 2008
>I am using Panorama PC version 4.02 and would
>like to overwrite an HTML file automatically
>from a form setup within Panorama. Panorama
>asks if I want to ³replace² existing file. I
>say ³Yes², but then I get a message saying
>³Please use another name as this is not a
>Panorama file². I seem to remember from a long
>time ago this happening, but don¹t remember how
>to resolve it, if it can be resolved. Or, my
>question really is why won¹t Panorama allow me
>to write over the previous file? I hope this is
>clear enough and no rush on this as the football
>game takes priority, especially up here in New
>England.
It sounds like a bug in the Windows version of
Panorama. The work around would be to use
FileTrash to delete the file, prior to the
SaveAsText.
SaveFileDialog folder,file,"Save This Page as:"
if file = "" stop endif
if chr(13)+ listfiles(folder,"")+chr(13) contains chr(13)+file+chr(13)
FileTrash folder,file
endif
SaveAsText folderpath(folder) + file
You will still get the question asking if you
want to replace, because that happens during the
SaveFileDialog. The error statement asking you to
please choose another name happens during the
SaveAsText.
Dave
More information about the Qna
mailing list