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
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
@isobject
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.
Who is online
Users browsing this forum: No registered users and 2 guests
