Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Posicionamiento del NULL
Message
 
To
09/07/2009 11:00:00
Luis Parada
Prosoft´s de Venezuela, C.A.
Valencia, Venezuela
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01411162
Message ID:
01411342
Views:
68
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
Previous
Reply
Map
View

Click here to load this message in the networking platform