Page 1 of 1

Looping Svectors

Posted: Sat Aug 15, 2015 2:47 pm
by Redwing153
SO I've had a good long look through this forum and the help files and I cannot find how to loop through an svector (I have v little prior programming experience). I can see several references to doing it so obviously it can be done and doing it for some appears obvious!

Please could some-one provide a simple of example of the programming syntax for doing this?

Much obliged.
RW

Re: Looping Svectors

Posted: Sat Aug 15, 2015 4:50 pm
by EViews Gareth
What do you mean by looping through an svector?

Re: Looping Svectors

Posted: Sun Aug 16, 2015 7:06 am
by Redwing153
I think I mean using it in a program to create string variables on which I can perform operations, in turn looping through each row in the vector (which holds a Bloomberg ticker)
What I'd really like to be able to do is create a string object from an alpha series or even a text object, but I understand that isn't possible as I keep getting errors, or turning my string into a text object.
So I'm focusing on svectors to do the job as I think I can use @convert on an alpha series to create one.
I'm essentially trying to achieve something very similar to this chap:
http://forums.eviews.com/viewtopic.php? ... tor#p38702

However my mediocre programming skills are letting me down..
thanks

RW

Re: Looping Svectors

Posted: Sun Aug 16, 2015 9:23 am
by EViews Gareth
You're probably best off using the @wjoin function to convert the svector into a space delimited list that you can then use in the loop.