Another Weird Thing??

Dave Cragg dcragg at lacscentre.co.uk
Thu Apr 13 15:01:40 EDT 2006


On 13 Apr 2006, at 19:32, David Burgun wrote:

> Hi,
>
> I seem to be being plagued by weirdness today! Take a look at this  
> code:
>
>     set the itemDelimiter to  
> ","                                                             -- 
> Do I need this?
>     put theMessageData into myMessageData
>     put replaceText(myMessageData,"|",",") into myMessageData
>
>
> When I run this and look at myMessageData before the replaceText()  
> statment, it contains:
>
> "10|30|366|460|"
>
> But after the replaceText() call, myMessageData is empty!!!!!
>
> How can this be?

I know that feeling. (The answer's usually depressing. :-))

I think Mark's suggestion is probably best in this situation. But I  
think this would work:

   put replaceText(myMessageData,"\|",",") into myMessageData

You need to escape the "|" character.

Cheers
Dave



More information about the use-livecode mailing list