Page 1 of 1

Variables of equation and _this.@varlist

Posted: Wed Sep 30, 2015 3:43 am
by Afterall
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}

Re: Variables of equation and _this.@varlist

Posted: Wed Sep 30, 2015 8:01 am
by EViews Gareth
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)

Re: Variables of equation and _this.@varlist

Posted: Wed Sep 30, 2015 9:11 am
by Afterall
OK. Now this part of program works perfect.
Thank you Gareth.