> > It appears to be the use of \n in the PendingCmds variable, as the > problem doesn't occur without it. However, if the PendingCmds variable > contains more than one command, they are concatenated to eachother and > cause a PowerPro error. > > The use of \n in a Do() command does not normally generate an
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. For example global x =?!a="zzz! ++ esc(?"nnotepad.exe","+") ++esc(?!+nabc"!,"+") Win.debug(x) Do(x) Assigns a string with embedded crs to variable x, shows it, then tries to run it. But the run fails as PowerPro splits the contents of variable x into three commands, even though it is a single assignment of a quoted string with embedded literal CRs, and ends up with an error message for the first line and then running notempad for the second. I will look at fixing at some point. ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/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/
