Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.SCX file name
Message
De
08/04/2001 23:47:07
Fausto Garcia
Independent Developer
Lima, Pérou
 
 
À
08/04/2001 13:11:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00493351
Message ID:
00493430
Vues:
13
Hi Grigore,
Didn't know about this, but sounds really interesting. Thanks for the tip!

>Hello.
>
>I've discovered today something I didn't knew.
>
>As you surely know, every form lauched creates a global variable with the same name as the SCX file name. After the form release, the variable remains. It has .NULL. value, but remains defined.
>
>I've tried in many ways to eliminate the variable, but no success. Hunting information on the UT was succesful, because I've beend instructed to use a separate launcher for forms. In this way, variable is local in launcher and is released after the form's launch. But this approach have two main disadvantages: if the form is modeless, the form object does not exists, and it can't be accessed from outside, even is visible! More than that, I wasn't able to return a value from form.
>
>Looking in the help (I am amazed how many informations I've missed from help!) I've discovered a function: SYS(1271). I've placed in the unload event of my base class the following code:
>
>
>variabila = JUSTSTEM(SYS(1271,THIS))
>RELEASE (variabila)
>
>
>and the variable is gone at the unload.
>
>As Ed Rauh said to me once: No magic. Just use the tools. :)
>
>I hope that this piece of infomation will help somebody....
Solo se que nada se

Fausto J. Garcia Pino - MCSD.NET
.NET, Oracle, Tronador & Fondismo!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform