Evaluate with localobj
Posted: Thu Feb 21, 2008 1:13 pm
I'm trying to execute the following:
This will work of cell is not a localobj and is outside of the method, but I'd much rather it stay local. How do I make
work?
Code: Select all
// $s1 is the name of a cell type
proc method() { localobj str, cell
str=new String("cell=new ")
sprint(str.s,"%s%s",str.s,$s1)
sprint(str.s,"%s%s",str.s,"()")
execute1(str.s)
.
.
.
}Code: Select all
execute1("someLocalObj=new someObj()")