[Objectscript-users] Embedding examples
Brought to you by:
rob_d_clark
|
From: Sergio S. <su...@in...> - 2005-09-06 22:49:56
|
Hi,
in the examples of embedding some things not work, but may wasn't errors
-------------------------------------------------------------------
Value val = OscriptInterpreter.eval("var foo = 1;", a);
System.out.println("val= " + val );
//this example returns NULL, when you done
OscriptInterpreter.eval("var ...") always returns NULL
val = OscriptInterpreter.eval("foo = 1 + 4;", a);
System.out.println("val= " + val );
//here returns val= 5
-------------------------------------------------------------------
Greetings.
|