I open the reserva.dbf with Tdatabase and build axbrowse
I need to calc the days on the Seven column ( red column)
WITH OBJECT oBrowse:aCols[ 7]
:bEditValue := TotalDays(oBrowse)
END
I tried with ( but not run ok )
Function TotalDays(oBrowse)
local nRecord := oBrowse:narrayat
local dStart := oBrowse:aArrayData[nRecord][5]
local dEnd := oBrowse:aArrayData[nRecord][6]
local nGiorni:= (dEnd-dStart)+1
*oBrowse:aCols[7]:VarPut(nGiorni)
return nGiorni
any solution ?