[Objectscript-users] Embedding error. Assing value.
Brought to you by:
rob_d_clark
From: Sergio S. <su...@in...> - 2005-09-07 15:53:34
|
Hi, when you want to assign a new value to a Value object, un exception is thrown. Scope b = new BasicScope( OscriptInterpreter.getGlobalScope() ); try { Value val = OscriptInterpreter.eval("var foo = 1;", a); System.out.println("val= " + val ); // prints (null) val = OscriptInterpreter.eval("foo = 1 + 4;", a); System.out.println("val= " + val ); // prints 5 val.opAssign(JavaBridge.convertToScriptObject(101)); //throws exception //oscript.exceptions.PackagedScriptObjectException: NoSuchMemberException: no such member: ExactNumber: = .... } .... Greetings. |