Hi Dragan!
Have you tried to pass a variable by reference, not by value to the script and place the object in this variable?
Something like this:
Local lcScript, loMyObject
lcScript = "LParameters loMyObject" + Chr(13) + ;
"loMyObject = CreateObject('MyClass')" + Chr(13) + ;
"Return" + Chr(13)
ExecScript(lcScript,@loMyObject)
Return
Emerson Santon Reed
"One Developer CAN Make a Difference. A community CAN make a future." - Craig Boyd