Results 1 to 9 of 9

Thread: Err, integers! - resolved

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506

    Lightbulb Err, integers! - resolved

    Ello, first off; sorry I really couldn't think of a subject for this thread!
    And now for the question... I was reading some code on VBnet and found a piece of code that has baffled me.
    VB Code:
    1. 'if found is at 200, then add some more array elements
    2.     If found Mod 200 = 0 Then ReDim Preserve fArray(found + 200)
    You see it? I don't understand the point of using 'Mod 200 = 0', what's wrong with just using 'found = 200'? Is there some sort of advantage noone has told me about with using Mod this way?
    If anyone can explain why the coder has done this it'd make my day , well not quite, but nearly.
    -Cheers
    Last edited by adzzzz; Jul 23rd, 2003 at 12:40 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width