Variables of equation and _this.@varlist

For questions regarding programming in the EViews programming language.

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

Afterall
Posts: 16
Joined: Tue May 27, 2014 7:49 am

Variables of equation and _this.@varlist

Postby Afterall » Wed Sep 30, 2015 3:43 am

Does anyone know what is the problem in this program. They should be something with: _this.@varlist command.

'the program
smpl @all
if @isobject("eq1") then
show eq1
close eq1
%coefnames = _this.@varlist
%varyingcoefs = %coefnames
'There is something wrong
endif

!result =@uidialog("caption","Window for eq1","edit", %varyingcoefs, "Type the reggresion (OLS)",1024)

equation eq1
eq1.ls {%varyingcoefs}
Attachments
dat_x1_day.wf1
(19.73 KiB) Downloaded 267 times

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

Re: Variables of equation and _this.@varlist

Postby EViews Gareth » Wed Sep 30, 2015 8:01 am

Your program seems a bit muddled. Try this:

Code: Select all

smpl @all if @isobject("eq1") then %coefnames = eq1.@varlist %varyingcoefs = %coefnames endif !result =@uidialog("caption","Window for eq1","edit", %varyingcoefs, "Type the reggresion (OLS)",1024)

Afterall
Posts: 16
Joined: Tue May 27, 2014 7:49 am

Re: Variables of equation and _this.@varlist

Postby Afterall » Wed Sep 30, 2015 9:11 am

OK. Now this part of program works perfect.
Thank you Gareth.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest