FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Another for date Range
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Another for date Range
Posted: Thu Mar 14, 2013 06:47 PM
Dear Friend,
Look this please





the procedure does not show exactly the right reservation

on My archive I have the room n. 7 has a different date range



Why it show other dates ?



I explain You

I have RESERVA->CHECK_IN and RESERVA->CHECK_OUT on reserva.dbf and I must show the reservation

the final user can select the dates fron datepich control , the datepich are on the ribbonbar ( I select from 23.02.2013 to 23.02.2013)






when I show the bitmaps I made a dbseek on number of room to se the state of each room

IF RESERVA->( DbSeek( nRoom ) )

and then

IF DToS( RESERVA->CHECK_OUT ) > DToS( dStart ) .AND. DToS( RESERVA->CHECK_IN ) < DToS( dEnd )
nStato:= val(RESERVA->STATUS)
endif

ELSE
nStato:= 0

ENDIF




I tried also with

IF (DToS( RESERVA->CHECK_IN ) >= DToS( dStart ) .AND. DToS( RESERVA->CHECK_IN ) <= DToS( dEnd ) ) .OR.;
(DToS( RESERVA->CHECK_OUT ) >= DToS( dStart ) .AND. DToS( RESERVA->CHECK_OUT ) <= DToS( dEnd ))


but it make error !!!! ( the same)
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