Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Application Object
Message
De
20/02/2003 16:51:03
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00755742
Message ID:
00755790
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform