Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form leaves behind reference
Message
 
 
À
30/06/1998 16:37:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00113140
Message ID:
00113173
Vues:
22
Pamela,

The memvar still in memory of type O and a value of .null. is not preventing the form from running properly the second time unless you have some kind code preventing it. You should be able to convince yourself of this by doing this in the command window assuming the form name is xyz.scx:

clear all
xyz = createobject("label") && create an object
xyz = .null. && get rid of it
do form xyz && run the form

What kind of problems are you having the second time? We can probably help you track down the real issue with a little more info.

>I have a form with close button whose Click method is:
>THISFORM.Release
>
>The problem is that when I exit the form this way, it leaves its object in memory with a .NULL. value. The next time I run the form it does not instantiate its contained objects correctly. I am assuming that is becuase this leftover reference gets in the way. What code do I need to put where to eliminate the object variable when the form is closed?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform