Page 1 of 1

looping through a vector

Posted: Tue Aug 06, 2019 6:02 am
by Mgatmait
is it possible to loop through a vector? for example

vector(5) test
test.fill 55, 2, 3

for !i in test
show !i
next

it will show 55 then 2 then 3

Re: looping through a vector

Posted: Tue Aug 06, 2019 7:42 am
by EViews Gareth
Only with something like:

Code: Select all

for !i=1 to @rows(test) !j = rows(!i) next