Problem saving files

David C. davidocoker at gmail.com
Tue Jul 6 11:17:47 EDT 2010


> I think Sarah's right, your code isn't checking to see if the file already
> has the same extension. Add this to your "save" handler after you get the
> user's file name:
>
> put ".ext" into tExtension -- use yours
> set the itemDelimiter to "."
> if last item of tFileName <> tExtension
> then put tExension after tFilename
>
> Now you shouldn't get duplicate extensions and if the file exists it will be
> overwritten.
>
> --
> Jacqueline Landman Gay

Since it correctly prompts about the file replacement, I really
thought that it would be handled accordingly by the Rev engine... live
and learn as they say. :)

I really appreciate the help folks and will give it a go as soon as
I'm back on the project this afternoon..

Best regards,
David C.



More information about the use-livecode mailing list