Weird Problem with replaceText
Eric Chatonet
eric.chatonet at sosmartsoftware.com
Mon Apr 18 11:52:54 EDT 2005
Hi Dave,
put replaceText(the filename of this stack,the short name of this
stack,"xxxxxxxxxx") into myString
Works fine here when the name of the file is the same as the name of
the stack (disregarding the extension).
But they can be DIFFERENT and then associate these 2 references might
not be a good idea ;-)
Best,
Le 18 avr. 05, à 17:34, David Burgun a écrit :
> Hi,
>
> Anyone got any ideas on this one:
>
> This doesn't work:
>
> local myString
>
> put replaceText(the filename of this stack,the short name of this
> stack,"xxxxxxxxxx") into myString
>
> The Trailing ".rev" is removed
>
> Whereas this does:
>
> local myTemp1
> local myTemp2
> local myString
>
> put the filename of this stack into myTemp1
> put the short name of this stack into myTemp2
> put replaceText(myTemp1, myTemp2,"xxxxxxxxxxxxxxxx") into myString
>
> works as expected and leaves the .rev in place.
Eric Chatonet.
----------------------------------------------------------------
So Smart Software
For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
----------------------------------------------------------------
Web site http://www.sosmartsoftware.com/
Email eric.chatonet at sosmartsoftware.com/
Phone 33 (0)1 43 31 77 62
Mobile 33 (0)6 20 74 50 86
----------------------------------------------------------------
More information about the use-livecode
mailing list