Web Analytics Made Easy -
StatCounter VB Code, don't get it - CodingForum

Announcement

Collapse
No announcement yet.

VB Code, don't get it

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • VB Code, don't get it

    Anyone know VB, I just need to make sure of a variable assignment, I don't get this type and need to make sure what it does before I get going in it.

    Code:
    For i = 0 To maxnivel
            mymin(i) = sumatotal
            sumatotal = sumatotal + mylongi(i)
            mymax(i) = sumatotal
        Next i
    What is that "mymin(i)" and Max stuff, are those arrays or just regular variables? And why the I's if so?

    Thanks guys.
    "FORTRAN is not a language. It's a way of turning a multi-million dollar mainframe, into a $50 programmable scientific calculator."
    http://www.microfastcat.com -- FastCat Software, the fastest software on the NET!
    http://www.microthosting.com -- Free reseller web hosting, Hosting, VPS, FREE SMALL HOSTING!!!
    http://www.microtronix-tech.com -- Web design and programming

  • #2
    ok so i know enough VB to be dangerous...
    the for i = 0 to maxnivel is how vb set's up their for loops... similar to for(i=0, i<100, i++)
    { blah }

    then the mymin(i) is an array... that is vb array (as opposed to (imo) "normal" arrays ie mymin[i])

    and then the next i part is the same as i++ for regular for loops

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

    Comment


    • #3
      Thanks that's what I thought I just wanted to be sure before I continued what I was doing. Thanks!
      "FORTRAN is not a language. It's a way of turning a multi-million dollar mainframe, into a $50 programmable scientific calculator."
      http://www.microfastcat.com -- FastCat Software, the fastest software on the NET!
      http://www.microthosting.com -- Free reseller web hosting, Hosting, VPS, FREE SMALL HOSTING!!!
      http://www.microtronix-tech.com -- Web design and programming

      Comment


      • #4
        no prob

        I code C hash-tag .Net
        Reference: W3C W3CWiki .Net Lib
        Validate: html CSS
        Debug: Chrome FireFox IE

        Comment

        Working...
        X