Hi again,
Some additional info.
Message du 2006-10-10 21:18:
Hi Jürgen,
Message du 2006-10-10 17:07:
out parameters working fine, you simply have to initialize the array
and an array with the length of 0 is fine.
Yes, this is what I did in Javascript. And it does not work with a
called Basic script.
Here is the same example in BeanShell:
import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XComponentContext;
import com.sun.star.frame.XDesktop;
import com.sun.star.frame.XModel;
import com.sun.star.script.provider.XScriptProviderSupplier;
import com.sun.star.script.provider.XScriptProvider;
oDoc = XSCRIPTCONTEXT.getDocument();
xsps = UnoRuntime.queryInterface(XScriptProviderSupplier.class,oDoc);
scriptPro = xsps.getScriptProvider();
xsp = UnoRuntime.queryInterface(XScriptProvider.class, scriptPro);
xscript =
xsp.getScript("vnd.sun.star.script:Standard.Module2.show2?language=Basic&location=document");
args = new Object [1];
args[0] = "Hello";
short [ ] [ ] a;
Object [ ][ ] b;
xscript.invoke(args, a, b);
I can see the message "Hello".
But here at return of invoke, variable a and variable b are Null. Not
even an array.
Bernard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]