Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>I have this in the form INIT:
>...
>...
>if !bNoInst
> return .F.
>endif
>
>I call this form in a .prg with DO FORM MyForm and a Read Events. The problem is that the form did not release. Looking at the debugger the Read Events line is still active. Why this?
>
>Thanks in advance
>Héctor L.
This is because you started the form in the same prg as the read events is.
in the main prg a local reference named myform.
This reference is still active and is released when the prg is stopped.
You can issue release myform to delete the reference.
If the problem was that you want to close the whole program then you can use clear events in the init of that form.
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