Page 1 of 1

Matrix labels: @rowlabels

Posted: Thu Mar 17, 2016 1:37 am
by ErikG
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)

Re: Matrix labels: @rowlabels

Posted: Thu Mar 17, 2016 7:49 am
by EViews Gareth
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))

Re: Matrix labels: @rowlabels

Posted: Fri Mar 18, 2016 2:22 am
by ErikG
ok, thanks!