Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class defined in execscript() vanishes
Message
From
28/09/2007 13:46:09
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brazil
 
 
To
27/09/2007 20:41:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01257351
Message ID:
01257498
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform