I have a class defined in a .prg and compiled into an .app, which is then subclassed in a script. I'm creating an object of the parent class just in case, so it's in memory and visible by the subclass. So far so good - this part works.
When the script exits, the object is released. I tried to return the object from the script, and also tried to pass another object as a parameter and assign this new object to its property. Either way, this object vanishes when the script exits.
I assumed VFP would keep the .fxp of the script open as it always does with other .fxp files when they are in use. I could copy the script into a temp .prg file, compile it and run it from there (just like we did since VFP6sp3), but I keep getting this nagging feeling that I'm missing something obvious and that this can be as easy as I imagined it would be.
What am I missing?
(don't say money or any of those, I can do that myself :)