FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with datepick control and bchange
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Problem with datepick control and bchange
Posted: Mon Jun 28, 2021 09:11 AM
On a dialog I have this control


Code (fw): Select all Collapse
@  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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem with datepick control and bchange
Posted: Mon Jun 28, 2021 09: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 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