Information générale
Catégorie:
Codage, syntaxe et commandes
Sammy:
Make certain the variable oGlobal is declared as PUBLIC; it should be the only PUBLIC variable you need in the entire App...
Make sure that the first FORM you call is called after the Global App is created, and any other Forms are called from it;
Make certain there is a READ EVENTS issued so that the program doesn't continue and Release the oGlobal variable (which will make the Object go out of scope - that looks like that is what happened...)
HTH,
-Irv.
******
>Thanks Irv,
>Now i have only one problem.
>When i try to retrive the value with oGlobal.propertyname on any form (i.e outside the method where the class was created/instantiated) i get the message 'alias not found'. How do i make the object accessible to other forms/methods? In the same method however it works alright.
>TIA
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement