run a function on end...

run a function on end...

Postby Silvio.Falconi » Wed Sep 18, 2013 8: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: run a function on end...

Postby Antonio Linares » Wed Sep 18, 2013 10:01 am

Silvio,

Call your function from the VALID of the dialog
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42094
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: run a function on end...

Postby Silvio.Falconi » Wed Sep 18, 2013 1:13 pm

yes of course,
I tried also with valid

ACTIVATE DIALOG oApp():oDlg NOWAIT ;
ON PAINT (oApp():oSplit:AdjClient());
ON INIT(oApp():oGrid:SetFocus(),ResizeWndMain()) ;
VALID ( oApp():oGrid: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 70 guests