--- In [email protected], "entropyreduction" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "Ted Wall" <TedWall@> wrote:
> >
> > If you use: (Applies escape character processing based on c to string)
> > s = esc(?+string+,?+c+)
>
> Hmm. My problem is this: Here's example from DDE, but aplies to
> any/all plugins that allow callbacks.
>
> Suppose dde wants to callback with a string that contains
> newlines. dde doesn;t know the name of a variable, all it knows is
> some script to invoke, with the result string as an argument. I tell
> user to provide callback definition in this form
>
> ?$.scriptname("#")$
>
> and I'll stick the result in the place where I encounter the insertion
> point, namely #.
>
> But if I put an actual newline in beetween quotes, and send command
> back to PowerPro, pp sees two lines, not one.
>
> So, if I can substitute \n \r (and \x00 while I'm at it) I can sneak
> the string in as a callback arg.
>
> But for that I need the esc char.
>
> Other suggestions?
How about using the form ?$.scriptname(#)$ (:no quotes) and inserting
the string in the form
esc(?"returned_string",?"\")
Basically the idea is:
with the original form ?$.scriptname("#")$, when inserting string take
care the delimiters too, I mean repalce "#", not just #, with
esc(?"returned_string",?"\")
Is this feasible?
Sean
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/