never mind. I gave up on @replace and found another way. It was not reliable when strings are in variables. worked sometimes and not others.

On Thursday, July 24, 2003, at 03:41 PM, Ben Johansen wrote:

Sorry, Is this a Question or a Statement?J

?

Ben Johansen - http://www.pcforge.com
Authorized Witango Reseller http://www.pcforge.com/WitangoGoodies.htm
Authorized MDaemon Mail Server Reseller
http://www.pcforge.com/AltN.htm


-----Original Message-----
From: Roland Dumas [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Witango-Talk: @REPLACE


?

wrapped up like a birthday present:

<@REPLACE STR="@@request$author" FINDSTR="@@request$subject" REPLACESTR="">

I can substitute the actual text in for the variable, and it will work.

On Thursday, July 24, 2003, at 02:59 PM, Ben Johansen wrote:


Wrap it in quotes…

FINDSTR=”@@request$tidbit”

?

Ben Johansen - http://www.pcforge.com
Authorized Witango Reseller http://www.pcforge.com/WitangoGoodies.htm
Authorized MDaemon Mail Server Reseller
http://www.pcforge.com/AltN.htm

-----Original Message-----
From: Roland Dumas [mailto:[EMAIL PROTECTED]
Sent:Thursday, July 24, 20032:55 PM
To:WiTango List
Subject: Witango-Talk: @REPLACE

?

I have a string that's in a variable. I want to do some string editing on it.

<@REPLACE STR=@@request$mystring FINDSTR='This string' REPLACESTR='That string'>

works just fine, but when I use a variable in the FINSTR argument, it does nothing

<@REPLACE STR=@@request$mystring FINDSTR=@@request$tidbit REPLACESTR='new string'> doesn't work

Yes, the string I'm looking for exists and is a part of the STR. Are variables disallowed?


Reply via email to