If I have a script file called with no args that starts:
==================================
if (arg(0) eq 0) do
win.debug("0 args")
else
win.debug("1 arg")
endif
[EMAIL PROTECTED]
quit
@testArg1
if (arg(0) eq 0) do
win.debug("0 args in labelled sub")
else
win.debug("1 arg in labelled sub")
endif
quit
==================================
output is:
0 args in labelled sub
1 arg
looks like arg(0) is the null string on entry to a script file taking
no args.
Testing length of arg(0) -- or even if (arg(0)) -- will do as a
workaround.
------------------------ Yahoo! Groups Sponsor --------------------~-->
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/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/