Here's my code:
Shared offset As Integer
Public Function GetPN(reset As Boolean, pagenumber As Integer) As Integer
If reset
offset = pagenumber - 1
End If
Return pagenumber - offset
End Function
This is for a report page number reset on a new grouping value. Since the offset must be shared (so that this will work across multiple callbacks to the server), if more than one person runs the report at the same time they’ll smash each other. I need to modify the offset to be a hashtable, and am not sure how I would.....or if there's another possible route.
Thanks!
Shared offset As Integer
Public Function GetPN(reset As Boolean, pagenumber As Integer) As Integer
If reset
offset = pagenumber - 1
End If
Return pagenumber - offset
End Function
This is for a report page number reset on a new grouping value. Since the offset must be shared (so that this will work across multiple callbacks to the server), if more than one person runs the report at the same time they’ll smash each other. I need to modify the offset to be a hashtable, and am not sure how I would.....or if there's another possible route.
Thanks!