Matrix labels: @rowlabels

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

ErikG
Posts: 57
Joined: Wed Jan 23, 2013 1:18 am

Matrix labels: @rowlabels

Postby ErikG » Thu Mar 17, 2016 1:37 am

Hi,

Thank you for adding functionality for accessing matrix labels in Eviews 9.5. It will make programming much easier for me.

However, there seems to be something odd with the string that is returned from the @rowlabels function. It is not searchable using @wfind(). When I try the code below I get 0, but I should get the value 1:

Code: Select all

WfCreate C:\temp\temp.wf1 u 1
Matrix(2,2) mData = 3
mData.setrowlabels "GDP EXPORTS"
%r1 = mData.@rowlabels
!r  = @wfindnc(%r1,"GDP")
@uiprompt(@str(!r))



Regards,
Erik (Eviews verison 9.5)

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

Re: Matrix labels: @rowlabels

Postby EViews Gareth » Thu Mar 17, 2016 7:49 am

Looks like we're leaving in too many quotation marks. We'll fix it, but for now you could do:

Code: Select all

WfCreate C:\temp\temp.wf1 u 1
Matrix(2,2) mData = 3
mData.setrowlabels "GDP EXPORTS"
%r1 = @stripquotes(mData.@rowlabels)
!r  = @wfindnc(%r1,"GDP")
@uiprompt(@str(!r))
Follow us on Twitter @IHSEViews

ErikG
Posts: 57
Joined: Wed Jan 23, 2013 1:18 am

Re: Matrix labels: @rowlabels

Postby ErikG » Fri Mar 18, 2016 2:22 am

ok, thanks!


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests