We've found that Witango is 'finicky' about ARRAYS using @@ notation.

I always use:
@@somearray[<@VAR somevar>, <@VAR somevar>].

But I also notice that you do not specify scope anywhere in your code -
which may be a problem.  I recommend ALWAYS specifying scope, it will ensure
the portability of your code.  And of course, without an assign action, I'm
not really sure that you'll get anything - as the @REPLACE as stated before
returns the changed string, but cannot modify an existing variable.

Maybe try rewriting the code as:
<@ASSIGN orders[<@VAR order_row scope=request>,3] scope=request
value="<@REPLACE STR="@@request$orders[<@VAR order_row scope=request>,3]"
FINDSTR="&" REPLACESTR="and">">

It looks pretty ugly, but see if that helps.





Jim Kass
Web Developer

--
Forestweb: The Source for Industry Intelligence
Best Content -- Most Relevant -- Best Delivery
http://www.forestweb.com
(310) 553 - 0008

-----Original Message-----
From: John McGowan [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 12:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Witango-Talk: @REPLACE


John,

Have you tried something like...

<@REPLACE STR="@@orders[@@order_row,3]" FINDSTR="<@char CODE='38'>"
REPLACESTR="and">

/John




John Shaw wrote:

>I would have tried that by now except that the value is coming through
>without the "&" being replaced with "and."
>
>----- Original Message -----
>From: "John McGowan" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, December 04, 2003 11:19 AM
>Subject: Re: Witango-Talk: @REPLACE
>
>
>
>
>>John,
>>
>>Although I don't have anything documented about this, we've always had
>>problems using the @@ shortcut notation, and we simply don't do it
>>anymore.  I would try writing the same code without it and see if  that
>>fixes the problem, plus don't forget that the @replace tag doesn't
>>operate on the STR directly, it takes it as an input and returns the new
>>string.  So if you're expecting the value in the orders var to change,
>>you will need to do an @assign in there somewhere.
>>
>>/John
>>
>>John Shaw wrote:
>>
>>
>>
>>>Hi all,
>>>
>>>This code used to work.  After my server died and we moved to another
>>>old box, it stopped working.  Since we were moving to a new machine, I
>>>lived with it thinking it would work on the new machine...it still
>>>don't work.  I'm using win2k and the most recent Witango.
>>>
>>>Ampersands choke XML processing, so this is a real pain in the seat
>>>muscle.
>>>
>>><@REPLACE STR="@@orders[@@order_row,3]" FINDSTR="&" REPLACESTR="and">
>>>
>>>Thanks,
>>>John
>>>
>>>________________________________________________________________________
>>>TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
>>>
>>>
>>>
>>>
>>________________________________________________________________________
>>TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
>>
>>
>
>________________________________________________________________________
>TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
>
>
>

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf

Reply via email to