increment alpha numeric using loop

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jackbyte
    New Member
    • Oct 2013
    • 2

    increment alpha numeric using loop

    plz help
    not sure how to put this but
    in the end what i would like is
    and increment from 1 to when ever for each letter in the alphabet
    this is what i have in mind
    psuedo
    Code:
    a= 0
    b=0
    etc..
    having trouble with the loop
    loop start
    
    if textbox1.text starts with "a" then 
    a=a+1
    
    close number= "a"a
    
    if textbox1.text starts with "b" then 
    b=b+1
    close number= "b"b
    etc..
    loop end
    .. so in the form i want each time the button is clicked the alpha number increases respectively when the name is enters
    in a nut shell i want to count& print how many names entered per alphabet
    Last edited by Rabbit; Oct 1 '13, 03:07 PM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.
  • Jackbyte
    New Member
    • Oct 2013
    • 2

    #2
    i think ive found my answer :D might not be the best...but plz still help out

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      This may be the same answer you've already found, but I strongly advise using an array rather than separate variable names such as a and b.

      Comment

      Working...