|
这两段代码
Private Sub Form_Current()
Dim PageFZ, PageFM As Integer
PageFZ = CurrentRecord / 6
PageFM = RecordsetClone.RecordCount / 6
DPages = Int(IIf(CurrentRecord Mod 6 = 0, PageFZ, PageFZ + 1)) & "/" & _
Int(IIf(RecordsetClone.RecordCount Mod 6 = 0, PageFM, PageFM + 1))
End Sub
和
Private Sub Form_Current()
Dim page0, page1, As Integer
page0 = Int(IIf(CurrentRecord Mod 6 = 0, CurrentRecord / 6, CurrentRecord / 6 + 1))
page1 = Int(IIf(RecordsetClone.RecordCount Mod 6 = 0, _
RecordsetClone.RecordCount / 6, _
RecordsetClone.RecordCount / 6 + 1))
DPages = page0 & "/" & page1
End Sub
哪个运行更快? |
|