Page 1 of 1

Counting exec arguments?

Posted: Wed Apr 10, 2013 8:47 am
by paues
I am writing a program file with an unspecified number of arguments and am trying to figure out how many they are. I call the file using a command such as the one below:

Code: Select all

exec "myNeatFile.prg" arg1 arg2 arg3
and myNeatFile.prg contains inter alia this snippet, which I would believe would count the arguments for me, but simply returns !i=-1:

Code: Select all

!i=0 while @neqna(%{!i},"") !i=!i+1 wend !i=!i-1 @uiprompt("!i="+@str(!i))
Help would be much appreciated.

Re: Counting exec arguments?

Posted: Wed Apr 10, 2013 9:11 am
by EViews Gareth
@wcount(%args)

Re: Counting exec arguments?

Posted: Thu Jun 19, 2014 6:49 am
by andreselsuave
Is this feature documented? I can't find it in the 7.2 version's documentation

Re: Counting exec arguments?

Posted: Thu Jun 19, 2014 6:51 am
by EViews Gareth
Not in the EViews 7 documentation