I don’t know how to handle this problem:
I have a get-field with a valid.
In case of backward navigation the valid should not be executed.
Thanks in advance
Otto
freieZimmer := TBelegung():new()
freieZimmer:setorder(4) //freieZimmer:zimmernr + dtos(freieZimmer:abreise)
freieZimmer:seek(::cZiNr)
if freieZimmer:found() = .T.
freivom := ARR_ANREISE
do while freieZimmer:zimmernr = adr->zimmernr
...
freieZimmer:skip(+1)
enddo
endif
freieZimmer->(ordScope(0, dtos(zimmernr) )) // set top scope
freieZimmer->(ordScope(1, dtos(zimmernr) ) ) // set bottom scope
freieZimmer->(dbgotop())
freieZimmer := TBelegung():new()
freieZimmer:setorder(4) //freieZimmer:zimmernr + dtos(freieZimmer:abreise)
(freieZimmer:cAlias)->( OrdScope(0, adr->zimmernr + dtos( ARR_ABREISE ) ) ) //99920100401
(freieZimmer:cAlias)->( OrdScope(1, adr->zimmernr + "A" ) ) //999A
freieZimmer:gotop()
if freieZimmer:eof() = .f.
freivom := ARR_ANREISE
do while freieZimmer:zimmernr = adr->zimmernr
...
freieZimmer:skip(+1)
enddo
endif
But I browse the whole room database and with the routine I posted I search after the vacancies in this certain room and write it into an array which I browse in a popup window.
ASIZE(::afrei,0)
Select room
do while .not. EOF()
::cZiNr:= field->zimmernr
::Lookup_ vacancies () //Buchung
select room
skip
ENDDO
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 98 guests