If you use: (Applies escape character processing based on c to string)
s = esc(?+string+,?+c+)
eg. LOCAL CRLF= ESC(?"\r\n", ?"\")
Then, I haven't found a reason to know a user's esc char.
But to answer your question could use:
LOCAL e, NL= ESC(?"\n", ?"\")
FOR(LOCAL i= 2; i<256; i= i +1)
IF(i!=34)DO
e= EVAL(??"?++ ESC(?"\d"++FILL("000",i)++ "n", ??\?)++ ??"?)
IF(e==NL)
BREAK
ENDIF
ENDFOR
IF(i==256)DO
WIN.Debug(?+No Escape character exists: "EXEC QuoteEscape OFF"+)
ELSE
e=ESC(?"\d"++ FILL("000", i), ??\?)
WIN.Debug(?"Escape char= \d"++ FILL("000", i)++ " == " ++e)
ENDIF
Ted
--- In [email protected], "entropyreduction" wrote:
>
> I realise I've been hardcoding backslash as escape character in
> various plugins. Any way to find out what the actual one is?
>
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/