方法一
'HTMer_RecordCount为要计算的页面总数
'HTMer_RecordCount为记录集数
'HTMer_PageSize为每页记录数
IfHTMer_RecordCountModHTMer_PageSize=0Then
HTMer_PageCount=Int(HTMer_RecordCount/HTMer_PageSize)
Else
HTMer_PageCount=Int(HTMer_RecordCount/HTMer_PageSize)+1
EndIf
方法二
'HTMer_RecordCount为要计算的页面总数
'HTMer_RecordCount为记录集数
'HTMer_PageSize为每页记录数
HTMer_PageCount=Int(HTMer_RecordCount/HTMer_PageSize*-1)*-1
方法三
'HTMer_RecordCount为要计算的页面总数
'HTMer_RecordCount为记录集数
'HTMer_PageSize为每页记录数
HTMer_PageCount=Abs(Int(-(HTMer_RecordCount/HTMer_PageSize)))
方法四
'HTMer_RecordCount为要计算的页面总数
'HTMer_RecordCount为记录集数
'HTMer_PageSize为每页记录数
HTMer_PageCount=Fix(HTMer_RecordCount/HTMer_PageSize)-CInt(CBool(HTMer_RecordCountModHTMer_PageSize))
|