SILVIO,
I used the original files from your first post.
James
SILVIO,
I used the original files from your first post.
James
James Bott wrote:Nages,
The code in your next post, Mon Mar 18, 2013 12:04 am, isn't working for me either. When first run all the records show as FREE in the left browse, and the right browse is empty. Clicking on the "Free Only" radio button show both browses as empty and the same when clicking the "Busy Only" radio.
Again I have no idea why it is not working. Any ideas?
Regards,
James
Silvio,
I tried your version of the function opendata() and the only difference is the when "Free Only" is clicked the left browse remains showing all rooms as "Free" instead of going blank as it did before. There is still nothing in the right side browse.
I will try to find some time later today to look into this some more.
James
Nages,
The EXE you mailed to me works exactly the same as described in my post just previous to this one.
Regards,
James





I need from 01. march 2013 to 04. march 2013 and the room number 7 can be free on 03 March 2013
Nages,
I sent you the new dbf ( many records)
If I found the rooms free on this dialog ( number 7 and 28) How I could select them to remeber to system "I can give to customer that two rooms." on 4 march 2013 ? ..
>This program shows a room available only if it is available continuously from 1st March to 4th March.
I saw I can modify the get data range and the app run
If you enter the dates as 4th march to 4th march you will see these rooms as available
Nages,
on get need to control if dEnd must not be < of dStart
VALID dstart<=dEnd where I insert this ?
I see.
We can improve on this.
One important note.
When we enter dStart and dEnd, the assumption in the program is that the guest will stay for the night on dEnd also.
If you mean that the guest will check out on dEnd, then we need to change the filter condition slightly. We shoud use dEnd - 1 where we used dEnd
yes,
on bed and breakfast hotel for a sample when I have a room from 01 march to 4 march I have 3 nights and the room must be free (check out) on 10:00 o' clock by customer of 4 march
>We shoud use dEnd - 1 where we used dEnd
where I must modify it to try ?
Silvio,
>We should use dEnd - 1 where we used dEnd
I suggest changing it in the function GetBusyRooms().
As I said before, I think you will also have to do it for dStart by adding 1. Example:
For the same room:
existing reservation 01/03/2013 to 03/03/2013
existing reservation 04/03/2013 to 08/03/2013
Desired reservation 03/03/2013 to 04/03/2013
The room is available from 03/03 to 04/03. They check in on the afternoon of the 3rd, and out in the morning of the 4th.
Regards,
James
I suggest changing it in the function GetBusyRooms().
As I said before, I think you will also have to do it for dStart by adding 1. Example:
Nages,
>No. Because we are already using CHECK_OUT - 1
Sorry, I forgot and I don't have the code with me right now (using a tablet).
James