How does this work? Could you make me understand this please
1. values for recordcount = 2 and pagesize = 10
with mod i get D = 2
Dim D = (CInt(Me.lblRecordCount.Text) Mod CInt(Me.lblPageSize.Text))
and with div i get s = 0.2
Dim s = (CInt(Me.lblRecordCount.Text) / CInt(Me.lblPageSize.Text))
2. what does Fix do here?
Me.lblcounts.Text += CStr(Fix(CInt(Me.lblRecordCount.Text) / CInt(Me.lblPageSize.Text) + 1))
Thanks
1. values for recordcount = 2 and pagesize = 10
with mod i get D = 2
Dim D = (CInt(Me.lblRecordCount.Text) Mod CInt(Me.lblPageSize.Text))
and with div i get s = 0.2
Dim s = (CInt(Me.lblRecordCount.Text) / CInt(Me.lblPageSize.Text))
2. what does Fix do here?
Me.lblcounts.Text += CStr(Fix(CInt(Me.lblRecordCount.Text) / CInt(Me.lblPageSize.Text) + 1))
Thanks