Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application Object
Message
From
20/02/2003 16:51:03
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00755742
Message ID:
00755790
Views:
12
Hi Bob,
The object isn't a real object until the init is done.
Create a prg named test. In it put:
DEFINE CLASS test as Custom
PROCEDURE Init
? TYPE("o")
ENDPROC
ENDDEFINE

Now do
o=NEWOBJECT("test", "test.PRG")
o is undefined.

I cheat like this.
PROCEDURE Init
PUBLIC ThisApp
ThisApp = This
ENDPROC

Now ThisApp.Release can work.

>Fred,
>
>Thank you for replying.
>
>I don't think using it that way is the problem. I did replace 'this.release' with 'oApp.release()' in the 'init' method and ended up with the same error. I even included only 'clear events' in 'release' method and in main.prg following read events, I added 'oApp.release()' with no luck.
Charlie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform