Adblock breaks this site

explain this please

Discussion in 'Programming General' started by r125 rider, Mar 3, 2009.

  1. r125 rider

    r125 rider Member

    Joined:
    Mar 2, 2009
    Posts:
    65
    Referrals:
    0
    Sythe Gold:
    0
    explain this please

    private sub cmdnext_click()
    if currentrecord < recordcount then
    currentrecord = currentrecord + 1
    display (currentrecord)
    end if
    end sub
     
  2. Darthatron

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0
    explain this please

    Code:
    private sub cmdnext_click()
    That means that when the button called cmdnext is clicked it will the all the stuff until "End Sub" or "Exit Sub" is found.
    Code:
    if currentrecord < recordcount then
    If the value of currentrecord is less than (<) the value of recordcount, then do stuff until "End If" is found.
    Code:
    currentrecord = currentrecord + 1
    Add one (1) to the value of currentrecord.
    Code:
    display (currentrecord)
    It seems to call a user-made sub to display the value of currentrecord, but I'm not sure.
    Code:
    end if
    Ends the If statement.
    Code:
    end sub
    Ends the Sub.


    ----

    Next time just look at a tutorial, since this was all pretty simple stuff.
     
< soz this is for hw lols admin dont delete plzzz | How do I delete rows of characters in a body of text? >


 
 
Adblock breaks this site