NOAUTORELEASE Window Main
Posted: Thu Nov 01, 2012 6:36 pm
Hola a todos :
cual es el mejor metodo para cerrar una ventana principal ?
what is the best method to close a main window?
error : Release a window in its own 'on release' procedure or release the main window in any 'on release' procedure is not allowed. Program terminated
**********************************************************************
and this gives me another error, I had never used these.
error : NOAUTORELEASE and MAIN Clauses Can't Be Used Simultaneously. Program Terminated
cual es el mejor metodo para cerrar una ventana principal ?
what is the best method to close a main window?
Code: Select all
DEFINE WINDOW Principal ;
AT 6 , 6 ;
WIDTH 1010 HEIGHT 710;
TITLE "Autoservicio Los Tilos 2012" ;
ICON "Shopcart";
MAIN ;
NOMAXIMIZE NOMINIMIZE NOSIZE;
ON RELEASE SalirA()**********************************************************************
and this gives me another error, I had never used these.
Code: Select all
DEFINE WINDOW Principal ;
AT 6 , 6 ;
WIDTH 1010 HEIGHT 710;
TITLE "Autoservicio Los Tilos 2012" ;
ICON "Shopcart";
MAIN ;
NOMAXIMIZE NOMINIMIZE NOSIZE;
NOAUTORELEASECode: Select all
Procedure SalirA
dbCloseall()
CallDll32 ( "CloseComFiscal" , "WINFIS32.DLL" ,handler)
Principal.release
return