Another Weird Thing??
Devin Asay
devin_asay at byu.edu
Thu Apr 13 14:56:00 EDT 2006
Dave,
On Apr 13, 2006, at 12:32 PM, 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?
What you want is the replace command, not the replaceText() function.
replace "|" with comma in myMessageData
The replaceText() function operates on regular expressions, and "|"
has a special meaning in regex.
Devin
Devin Asay
Humanities Technology and Research Support Center
Brigham Young University
More information about the use-livecode
mailing list