#IF(#DEFINED(#Pager.CountOfPages) AND #Pager.CountOfPages > 1)
#LOCAL("CountA",0) #LOCAL("CountB",0) #IF(#Pager.CountOfPages == #Pager.CountOfItems) #SET("CountA",#Pager.Page) #ELSE #IF(#Pager.Page < 2) #SET("CountA",1) #ELSE #SET("CountA",#CALCULATE((#Pager.PageSize * #Pager.Page) - (#Pager.PageSize - 1))) #ENDIF #LOCAL("PagerEndResult", #CALCULATE(#Pager.PageSize * #Pager.Page)) #IF(NOT #PagerEndResult > #Pager.CountOfItems) #SET("CountA",#CountA." - ".#Pager.CountOfItems) #ELSE #SET("CountA",#CountA." - ".#PagerEndResult) #ENDIF #ENDLOCAL #ENDIF #SET("CountB",#Pager.CountOfItems) #REM #ENDREM {ResultCounter} #ENDLOCAL #ENDLOCAL |
|