Page 1 of 1

@isobject

Posted: Sat Jul 30, 2011 7:14 am
by lomfy
hey folks!
i'm trying to simply count the numbers of series in my worksheet (in order to get a scalar for calculations) which are labeled
rs1 rs2 rs3 .... and so on.
i tried to do this via the following programme:


!count = 0
for !i=1 to 96
if @isobject(rs!i) then !count=!count+1
endif
next
scalar count = !count


however, @isobject does only accept strings, not the argument with !i...
any hints?
cheers

@isobject

Posted: Sat Jul 30, 2011 8:28 am
by EViews Gareth
Use @wlookup to return a string containing the name of every series in the workfile. Then use @wcount to count how many names are in that string.

Re: @isobject

Posted: Mon Aug 01, 2011 3:21 am
by lomfy
ok...i'll try that! thanks!