Problem with datepick control and bchange

Problem with datepick control and bchange

Postby Silvio.Falconi » Mon Jun 28, 2021 9:11 am

On a dialog I have this control


Code: Select all  Expand view  RUN
@  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 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: 7072
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with datepick control and bchange

Postby Silvio.Falconi » Mon Jun 28, 2021 9:33 am

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 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: 7072
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 86 guests