Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Posicionamiento del NULL
Message
 
À
09/07/2009 11:00:00
Luis Parada
Prosoft´s de Venezuela, C.A.
Valencia, Vénézuéla
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01411162
Message ID:
01411342
Vues:
67
This message has been marked as the solution to the initial question of the thread.
Hola Luis,

>.- Estoy programando bien dicho metodo para que cierre bien el formulario

No necesitas el CLEAR CLASS. Basta de cambiar el valor de la variabla a NULL para cerrar la herramienta.

>¿porque? al utilizar el diseño "X" "Closable" del formulario, cierra el formulario y no la barra de herramienta.

Cuando cierras una pantalla con el botón "X", VFP llama a método QueryUnload. Para cerrarla de un programa tienes que ejecutar el método Release. Por eso normalmente creamos otra función como así:
Procedure QueryUnload
  If not Thisform.CerrarFormulario()
    Nodefault
  Endif
Endproc

Procedure Release
  If Thisform.CerrarFormulario()
    Dodefault()
  Endif
Endproc

Procedure CerrarFormulario
  _Screen.oTlb = NULL
Return .T.
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform