--- In [email protected], Alexander Cicovic 
<[EMAIL PROTECTED]> wrote:
> Hello there,
> 
> Thursday, June 9, 2005, 2:11:08 AM, Alexander Cicovic wrote:
> 
> GPG>> Maybe you should consider using the ESC function to avoid 
worrying about the
> GPG>> above two. <...>
> 
> AC> I will look into it.  Thanks...
> 
> 
> Well.  I still can't do what I want.
> 
> This works:
> 
>      win.debug(esc("test'\test","'"))
> 
> This doesn't:
> 
>      win.debug(esc("test'"test","'"))

The first argument to the esc function is interpreted by PowerPro as 
the string "test'" following by test" which is not valid syntax.

With esc, if you want to specify the first string literally, you 
have to use the ?c...c format of a literal, ie
win.debug(esc(?*test'"test*,"'"))

Of course, you can use as easily avoid the esc and use
?*test"test*

With regard to your original question, in my tests with \ as escape 
char, 
win.debug(ReplaceChars(?*"xx""*, "\"", ""))
produces xx, as expected.  So does

win.debug(ReplaceChars("\"xx\"\"", "\"", ""))

and so does
mytext="\"xx\"\""
win.debug(ReplaceChars(mytext, "\"", ""))






With standard configuration








Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to