setattr-procedure with samples

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

mamo
Posts: 205
Joined: Wed Nov 07, 2012 9:11 am

setattr-procedure with samples

Postby mamo » Wed Aug 30, 2017 6:05 am

Dear Eviews team,
I am using Eviews 9.5, December 2016 built.
It seems that defining new attributes using the "setattr" procedure in a program does not work with sample objects (see example below).
(However, it is possible to define new attributes with sample objects manually.)
Is this a bug?

Best, mamo

Code: Select all

wfcreate a 2000 2016 sample mysmpl 2001 2005 ' Try to define the new attribute mysmpl.setattr(range) 5 ' it doesn't work; but the "Range" attribute could be set manually mysmpl.label

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

Re: setattr-procedure with samples

Postby EViews Gareth » Wed Aug 30, 2017 8:23 am

An omission on our part. We'll see about adding support for the global object procs to samples in next (EV10) patch.


Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 1 guest