cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass a Java MegaObject to Vbscript Macro in Mega ?

Highlighted
Occasional Contributor

How to pass a Java MegaObject to Vbscript Macro in Mega ?

Hi All,

 

I was able to call a vbscript macro from Java using Java api. My question is, can I pass a MegaObject from java class to vbscript macro ?  So far I am successful if I pass String objects only.

 

Java code:

 

    MegaCOMObject  macro = (MegaCOMObject) oEnv.getMacro("TestMacroCallViaJava");

 

 

Vbscript macro

 

Function TestJavaCall(MyMegaObject)

    
MsgBox("Inside TestJavaCall:" & MyMegaObject)

TestJavaCall = "Good"

End Function