; save to test.powerpro and double click
; With this method, the only things escaped
; are inside the ESC() so there's no confusion.
; This is chopped up to get it to fit on Yahoo
; To me, this is clean, clean, and less confusing,
; no \\ is ever required. No \t is accidentally escaped unless
; it was included in ESC(). I can still get \d008 ...
; Since I'm trying to do this is a script
; I have to fake it
; I'm proposing that:
Exec QuoteEscape OFF
; is always off
LOCAL fn="C:\New Temp\See what I mean.txt"
LOCAL cap0="Without the new function"
LOCAL cap1="With the new function"
LOCAL msg0="I'm still\n\n"
msg0=msg0++"Working on it\n\n"
LOCAL msg1="Only stuff in ESC()are\never escaped"
LOCAL [EMAIL PROTECTED]("Now you have to \n")
msg2=msg2++"manually turn on"[EMAIL PROTECTED]("\n")
msg2=msg2++"Exec QuoteEscape ON\n"
msg2=msg2++"because I don't want to\n"
msg2=msg2++"keep doing it.\n"
[EMAIL PROTECTED](msg2++"in the script.\n\n\n")
msg2=msg2++"Thanks for your time, /\Ted/\"
;Faking an esc command
MESSAGEBOX("ok",msg0++fn,cap0)
MESSAGEBOX("ok","What if\n:"++msg0++fn,cap0)
MESSAGEBOX("ok",[EMAIL PROTECTED](msg0)++fn,cap1)
MESSAGEBOX("ok",[EMAIL PROTECTED]("What if:\n"++msg0)++fn,cap1)
MESSAGEBOX("ok",[EMAIL PROTECTED](msg1),cap1)
MESSAGEBOX("ok",msg2)
Exec QuoteEscape ON
MESSAGEBOX("ok","For this test, I turned it back ON")
QUIT
@Esc
;Since I'm trying to do this is a script
; I have to turn Exec QuoteEscape ON
; to get the escapes, but I'm wanting
; Bruce to do this in a command so users
; don't have to run a script like this...
Exec QuoteEscape ON
;LOCAL WithEscapes=&("\""++arg(1)++"\"")
LOCAL WithEscapes=EVAL("\""++arg(1)++"\"")
Exec QuoteEscape OFF
QUIT(WithEscapes)
Done, uncle, give, & I wish I could communicate how clean this is,
Ted
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
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/