Page 1 of 1

@isobject

Posted: Sat Feb 12, 2011 12:00 pm
by raphbrun
Hi. I am facing a problem with @isobject. I am trying to run the following:

for %y fr

scalar is_{%y}_fxvol=@isobject("fxvol_{%y}")
scalar is_{%y}_cpi=@isobject("dcpi_{%y}")

next

Both series fxvol_fr and dcpi_fr exist and contain values. However the scalar values in the program are zero. @isobject does not work in a loop environment?

Thanks

Re: @isobject

Posted: Sat Feb 12, 2011 12:06 pm
by EViews Gareth
You can't use replacement variables inside quotes. Try this:

Code: Select all

for %y fr %temp1 = "fxvol_" + %y %temp2 = "dcpi_" + %y scalar is_{%y}_fxvol=@isobject(%temp1) scalar is_{%y}_cpi=@isobject(%temp2) next