do something every 1000 records or so



Ok, this could be a perfect exam question, but it isn't and i need a
good solution

in a function i get 2 int parameters : begin end
they represent the number of records affected , I have to print to a
log at the start of this and then every 1000 records or so, the code
looks something like this:

public Vector findRecords(int beginRange, int endRange)
throws UierException
{
if beginRange == 0 || "some condition so it prints every 1000
records" {
logIt(" Range affected" + beginRange + " to " +
endRange);

......



I would really appreciate the help
oh and by the way, the range varies, it could be 20, 40, 120, or
whatever, so the condition has to check that between beginRange and
endRange is more that 1000x

i m not sure I m explaining the problem properly, so if its not clear
please ask. also there might be an incredibly easy solution, but i
just cant see it :(
Thanks in advance for the help

jo

.



Relevant Pages

  • Re: Odd BeginRange/EndRange behavior
    ... asking for exactly a range of cells can mean that the server doesn't have ... > While it would be possible to do an execute with Begin/EndRange only to ... BeginRange and EndRange ...
    (microsoft.public.data.xmlanalysis)
  • Re: Odd BeginRange/EndRange behavior
    ... If your BeginRange is 1 and EndRange is 40, ... All cells returned will fall into this rectangle. ... > The Query, below, produces approx 256 rows and 4 columns. ...
    (microsoft.public.data.xmlanalysis)
  • How to effectively use BeginRange / EndRange .. for records paging?
    ... How to effectively use BeginRange / EndRange .. ... The MDX query returns 100,000 rows. ... and then based row-column values set Beginrange / Endrange ...
    (microsoft.public.data.xmlanalysis)