>Local lcScript, loMyObject >lcScript = "LParameters loMyObject" + Chr(13) + ; > "loMyObject = CreateObject('MyClass')" + Chr(13) + ; > "Return" + Chr(13) >ExecScript(lcScript,@loMyObject) >Return >The parameter was an object, and objects are always passed by reference. The (pseudo) code went like this:
lparameters toCaller o=createobject("myclass") toCaller.oProperty=o define class myclass as myOtherClass of over\there\myOtherClasses.prg procedure userhook() enddefineAnyway, I've already fixed it to copy the script out into a temp prg (on sys(2025)), and the caller is trying to delete it after this.oProperty=null in .unload(), but VFP doesn't close the file that early, so that errors out. I've unearthed some of my code from 2001 which purges the temp files older than three days - I can live with that, lot of software _never_ cleans up :).