function AddDays( oGantt )
local nCellWidth := oApp():oGantt:nCellWidth
local nCellHeight := oApp():oGantt:nCellHeight
local oItem
local aColors := { CLR_HRED, CLR_HGREEN, CLR_HBLUE, CLR_HCYAN, CLR_HMAGENTA, CLR_YELLOW }
SELECT BE
BE->(DbGotop())
DO WHILE BE->(!EOF())
Numero:=BE->CAMERA
nRecBeach:=BE->(Recno())
SELECT RE
RE->(DbGotop())
DO WHILE RE->(!EOF())
IF RE->NUMTABLE=Numero
oItem = oApp():oGantt:AddItem( nRecBeach, Day(RE->DATAIN ), Day( RE->DATAFIN ),;
aColors[ RE->STATO ] )
ENDIF
RE->(dbSKIP())
enddo
BE->(dbSKIP())
end
RE->(dbGOTOP())
BE->(DbGotop())
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 101 guests