cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

rbpatesmega
Super Contributor

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

0 Replies