Problem with datepick control and bchange

Post Reply
User avatar
Silvio.Falconi
Posts: 7170
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 3 times

Problem with datepick control and bchange

Post by Silvio.Falconi »

On a dialog I have this control


Code: Select all | Expand

@  22,140 DTPICKER oDtpLast VAR dLast SIZE 80,12 PIXEL OF oFolder:aDialogs[1] ;
      PICTURE "ddd dd mmm yyyy"  UPDATE ;
      ON CHANGE (deletefromCombo(oBrowse,aGetTotali) ,oBtnSearch:enable() )



the function deletefromCombo(oBrowse,aGetTotali) delete all rows on the oBrowse , but this operation must be made only if the date dLast is changed by operator

but it is processed before of all

why ?

I would like that function to be called only and exclusively if the operator changes the date
why does fivewin call that function even though the operator hasn't changed anything?
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
User avatar
Silvio.Falconi
Posts: 7170
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 3 times

Re: Problem with datepick control and bchange

Post by Silvio.Falconi »

now I tried
ON CHANGE (IIF( oDtpLast:Changed(),deletefromCombo(oBrowse,aGetTotali),), oBtnSearch:enable() )

but the application is crashed
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
Post Reply