On-rev Rename quotes work. Vars don't!

Klaus on-rev klaus at major.on-rev.com
Thu Jan 27 17:54:33 EST 2011


Hi Rick,

> 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.

I have no need to rename my files :-D

> Thanks for your help!

are you sure that the path is correct?
Maybe the defaultfolder is not correct?
Did you try with an abolute path?

> Rick

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com





More information about the use-livecode mailing list