Scalar from Table is a Character Error

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

BCNAV
Posts: 40
Joined: Tue Oct 31, 2017 9:06 am

Scalar from Table is a Character Error

Postby BCNAV » Thu Jul 12, 2018 7:29 am

I have an eviews table with numbers in it. All are verified numeric. When I enter the following:

scalar row2col3 = a_mape_feval_ifr(2,3)

I get the error String assigned to scalar. How can this be if the table is listed as fixed decimal with the number 1.681044304838171

thanks

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13294
Joined: Tue Sep 16, 2008 5:38 pm

Re: Scalar from Table is a Character Error

Postby EViews Gareth » Thu Jul 12, 2018 7:42 am

All elements of a table are a string. Use @val to convert to a scalar.
Follow us on Twitter @IHSEViews

BCNAV
Posts: 40
Joined: Tue Oct 31, 2017 9:06 am

Re: Scalar from Table is a Character Error

Postby BCNAV » Thu Jul 12, 2018 8:43 am

forgot about that....thanks!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 12 guests