Try, using the "String Delimiter" to avoid escape chars:
(see PowerPro.hlp + Expressions + "string delimiter")
sTemp = ReplaceChars(?"mytext", ?*"*, "")
;eg (trying to include double quotes in the sTemp variable):
LOCAL sTemp=?*"C:\temp\new directory\replace mytext.txt"*
WIN.Debug(sTemp)
; removing the double quotes from sTemp
sTemp = ReplaceChars(sTemp, ?*"*, "")
WIN.Debug(sTemp)
QUIT
Use the ESC() function to make escapes that are independent of the
user escape character:
CR=ESC(?"\r", ?"\")
NL=ESC(?"'n", ?"'")
TAB=ESC(??*t?, ?#*#)
The above will all work on all PowerPro configurations.
Ted
Alexander Cicovic wrote:
> A while ago, I received a bug report for my script named
> CommandGenie.
> The error is located in the following line:
>
> sTemp = ReplaceChars("mytext", "\"", "")
.
.
.
> This works:
>
> win.debug(esc("test'\test","'"))
>
> This doesn't:
>
> win.debug(esc("test'"test","'"))
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/