--- Bruce wrote:

> The problem is that Do passes its argument to the internal command
> line interpreter, and this routine is not able to deal with literal
> carriage returns or newlines which are in quoted strings (normally
> you would be using escape sequences, not actual control characters,
> in PowerPro command lines.

Forgive me if I'm misunderstanding you but I believe we aren't seeing
the same thing here.

This seems like correct behaviour to me�� if a variable passed to Do()
contains a newline character then the content before and after that
character should be treated as separate commands. This allows multiple
commands to be executed from the one variable.

The thing with the script that I previously posted though, is that
that variable only contains newline characters where a new command is
coming, and not within strings represented in it. For instance, I
don't expect this to work:

Do(Esc(?"Global Var = ?'My\nthing'", ?"\"))

Here is precisely what my script outputs to the PendingCmds variable
(two commands, watch for line breaks):

MessageBox(?'Asterisk', Esc(?"External data\nwith line breaks and such", ?"\"))
Win.Debug(Esc(?"External data\nwith line breaks and such", ?"\"))

If one copies those two commands to the clipboard and runs:

Do(Clip.Get)

The commands will run as expected. However, if one copies those two
lines plus an additional blank line after it, you get an Explorer
popup.

I'll try to post a clearer example of the glitch shortly, since it
appears that I can reproduce it more easily.

-- 

Alex Peters / Melbourne, Australia
PowerPro v4.1.00 / Windows XP



------------------------ 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
--------------------------------------------------------------------~-> 

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