On-rev Rename quotes work. Vars don't!
Rick Harrison
harrison at all-auctions.com
Thu Jan 27 17:19:19 EST 2011
Hi Klaus,
I started out using the correct syntax with FILE, and it
didn't work on On-Rev.
I've verified that the pathname is correct.
rename FILE "xyz" to "zyx"
works fine on On-Rev
however:
put "xyz" into MyOldFileName
put "zyx" into MyNewFileName
rename FILE MyOldFileName to MyNewFileName
does not work on On-Rev. It yields the error: "can't rename file".
Try it yourself on On-Rev, and see if you can duplicate the error.
Thanks for your help!
Rick
On Jan 27, 2011, at 2:56 PM, Klaus on-rev wrote:
> Hi Rick,
>
> the correct syntax is:
> rename FILE "xyz" to "zyx"
> or
> rename FOLDER "xyz" to "zyx"
>
> I have been using this for years in desktop apps withput problems.
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> klaus at major.on-rev.com
>
>
More information about the use-livecode
mailing list