Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help needed - form won't release
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00693076
Message ID:
00693271
Vues:
24
>Is this a bug or sime sort of memory problem?

Colin,

It is neither a bug nor a memory problem, it is the result of confusing the name of the SCX with the name of the form object at runtime, these do not necessarily have the same value. If you leave the naming of the object up to VFP you will deal with the problems you are now, that is not knowing what the name of the object is.

You can explicitly name your form objects so you do know what the names are.
DO FORM MyForm NAME MyForm
- OR -
MyForm = CreateObject("MyForm")
Another option is to NOT use the object names but rather deal with the Forms collection of the _Screen object as in;
FOR lnCnt = _screen.FormCount TO 1 STEP -1
   _screen.Form(lnCnt).Release()
ENDFOR
Note the fact that the forms collection is processed in reverse order.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform