FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour run a function on end...
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
run a function on end...
Posted: Wed Sep 18, 2013 08:39 AM
I have a dialog activate with NOWAIT clausole
I wish open on END another function with another dialog but only when the first dialog is closed
it's possible ?

Itried also in this mode
I have a vistamenu where I call the first dialog ( Proveedores() ) and then the second (Pstart())

but it call only the second Pstart()

oItem[3]:AddItem("Totale fornitori in archivio:"+ tran(nfornitori,'@E 999,999') ,, { ||(Proveedores() ,Pstart() ) } )
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: run a function on end...
Posted: Wed Sep 18, 2013 10:01 AM

Silvio,

Call your function from the VALID of the dialog

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: run a function on end...
Posted: Wed Sep 18, 2013 01:13 PM
yes of course,
I tried also with valid

ACTIVATE DIALOG oApp():oDlg NOWAIT ;
ON PAINT (oApp():AdjClient());
ON INIT(oApp():SetFocus(),ResizeWndMain()) ;
VALID ( oApp():nLen := 0 ,;
oBar:End(), DbCloseAll(), oApp():oDlg := NIL, oApp():oGrid := NIL, oApp():oTab := NIL, Pstart(), .t. )


but it call the dialog first then call Pstart making a graphic error because on Pstart I insert vistamenu and I see all two dialogs ( nowait) but this problem come sometimes
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion