Page 1 of 1

assigning a row of the table from a vector of strings

Posted: Mon Jul 10, 2023 10:48 pm
by r_samin
Hi
I want to store the name of my columns in a separate object for strings (I'm guessing an svector is suitable)
I would like to fill the first row of my table using the values stored in this object. if this operation is possible in eviews12, could someone help me with the syntax?

Re: assigning a row of the table from a vector of strings

Posted: Tue Jul 11, 2023 10:22 am
by EViews Gareth
For a table object the only way to do it is to loop through the elements of the string (or svector) and insert them into the table one at a time.

Re: assigning a row of the table from a vector of strings

Posted: Tue Jul 11, 2023 8:08 pm
by r_samin
Thanks, Gareth
So it will be something like this

Code: Select all

table tab01 scalar a=@wcount(svec01) for !i=1 to a tab01(!i,1)=svec01(!i,1) next