can we check existance of fixed effects?
Posted: Wed May 04, 2011 9:50 am
I am trying to extract fixed effects associated with all the existing equation objects in my workfile
this works fine if all by equations have fixed effects
but if one of them does not then the script crashes with an error message
OR
some way in which i can override the error message and the script continues with the next equation
-Thanks
Ravi
Code: Select all
equations = app.Lookup("*","equation",1)
For Each equation In equations
command = "freeze(mode=overwrite,script_temp_fe) " & equation & ".effects"
app.Run(command)
command = "script_temp_fe.save " & output & "\\Effects\\" & equation & ".effects"
app.Run(command)
next
but if one of them does not then the script crashes with an error message
is there a way by which I can check if any kind of effects exist with the equation before executing the freeze commandEquation does not contain this type of fixed or random effects
OR
some way in which i can override the error message and the script continues with the next equation
-Thanks
Ravi