Another for date Range

Another for date Range

Postby Silvio.Falconi » Thu Mar 14, 2013 6:47 pm

Dear Friend,
Look this please


Image


the procedure does not show exactly the right reservation

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

Image

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 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: 7052
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 45 guests