--- In [email protected], [EMAIL PROTECTED] wrote:
> > It would be great to have a flag like this for move etc. BTW, you may
> > try 'Exec.OnError()' in this case:
> > Exec.OnError("none")
> > ...
> > ...
> > Exec.OnError("display")
>
> I thought about that alternative after sending that E-mail, but
never tried
> because I had the if() already done :)
>
> On a programming intellectual note...which do you think is the
faster/less
> cpu cycles to do? If() or turning error off and on?
Now it's a weekend, so I have a time to give a test. What I found out are:
1) If you wish, you can use File.AllFiles() for renaming in this case,
it won't cause a problem.
2) Exec.OnError() merely supresses the error messages, the end effects
are the same as with the error messages: it stops further executing
the commands/scripts. So, currently the only workaround seems to use If().
3) There seems a bug with "unhook":
Actually I have Exec.OnError("hook") in the startup script of PP, and
I now noticed that Exec.OnError("unhook") afterwards doesn't quit
excuting the the command list "HookErrors", which is an imported one
in my case.
Sean
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12h36ehlo/M=362329.6886308.7839368.1510227/D=groups/S=1706030409:TM/Y=YAHOO/EXP=1124464675/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~->
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/