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
James
static function OpenData()
field ID
USE RESERVA NEW SHARED VIA "DBFCDX"
INDEX ON RESERVA->ROOMS_ID + DToS( RESERVA->CHECK_IN ) TAG ROOM_IN TO RESERVA SET ORDER TO TAG ROOM_IN
GO TOP
USE RESERVA NEW SHARED ALIAS "RES" VIA "DBFCDX"
GO TOP
USE ROOMS NEW SHARED VIA "DBFCDX"
INDEX ON ROOMS->ID TAG rooms_id TO rooms SET ORDER TO TAG
ROOMS_ID GO TOP
SET RELATION TO ID INTO RESERVA SCOPED
GO TOP
return .t.
try it please !!
I insert the insed and the thereis an error on SET ORDER TO TAG
ROOMS_ID instead of SET ORDER TO TAG
ROOMS_OD @ 10,230 RADIO oRad VAR nFilter ITEMS "Mostra tutte le camere", ;
"Mostra solo le camere libere",;
"Mostra solo le camere occupate" ;
SIZE 130,10 PIXEL OF oDlg ;
ON CHANGE (ROOMS->( SetRoomsFilter( oBrwRooms, nFilter) ),;
oBrwReserva:Refresh() )
BUT i NOT UNDERSTOOD ...
Why i must open two tries Reserva.dbf ? one with alias Reserva and then with alias Res
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