Weird Problem with replaceText

David Burgun dburgun at dsl.pipex.com
Mon Apr 18 11:34:32 EDT 2005


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.

This is being used in an openCard handler.

Thanks
Dave



More information about the use-livecode mailing list