#IF(#DEFINED(#Pager.CountOfPages) AND #Pager.CountOfPages > 0)
#BLOCK("NewLineReplace","") #IF(#Pager.CountOfPages == 1) #IF(#Pager.CountOfItems == 1) 1 {Result} #ELSE #Pager.CountOfItems {Results} #ENDIF #ELSE #LOCAL("CountA", #Pager.ItemOffset + 1) #LOCAL("CountB",0) #LOCAL("PagerEndResult", #CALCULATE(#Pager.PageSize * #Pager.Page)) #IF(#PagerEndResult > #Pager.CountOfItems) #SET("CountA",#CountA." - ".#Pager.CountOfItems) #ELSE #SET("CountA",#CountA." - ".#PagerEndResult) #ENDIF #ENDLOCAL #SET("CountB",#Pager.CountOfItems) #REM #ENDREM {ResultCounter} #ENDLOCAL #ENDLOCAL #ENDIF #ENDBLOCK |
#IF(#Pager.CountOfPages > 1)
|