on a Report from Xbrowse I use a function
I wisth show the total pages I tried with
LTrim( Str( Len( oRep:oDevice:oDevice:aMeta ) ) )
but not run
oBrw:Report( cTitle, , , ;
{ |oRep, oBrw| MySetUp( oRep, oBrw, oDbf,aGroup,nGroup,lEject,aFields ) })
function MySetUp( oRep, oBrw, oDbf,aGroup,nGroup,lEject,afields )
local nTotalpages:=0 // LTrim( Str( Len( oRep:oDevice:oDevice:aMeta ) ) )
oRep:oheader := TrLine():New( {{||cTitle1},{||cTitle2} }, oRep, 0 )
oRep:oTitle := TrLine():New( {{|| cf(date())+"- Pagina : "+Str(oRep:nPage,3)+"/"+Str(nTotalpages,3)} }, oRep, 2 )