Page 1 of 1

Problem with datepick control and bchange

Posted: Mon Jun 28, 2021 9:11 am
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?

Re: Problem with datepick control and bchange

Posted: Mon Jun 28, 2021 9:33 am
by Silvio.Falconi
now I tried
ON CHANGE (IIF( oDtpLast:Changed(),deletefromCombo(oBrowse,aGetTotali),), oBtnSearch:enable() )

but the application is crashed