By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,313 Members | 2,725 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,313 IT Pros & Developers. It's quick & easy.

increment alpha numeric using loop

P: 2
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
Expand|Select|Wrap|Line Numbers
  1. a= 0
  2. b=0
  3. etc..
  4. having trouble with the loop
  5. loop start
  7. if textbox1.text starts with "a" then 
  8. a=a+1
  10. close number= "a"a
  12. if textbox1.text starts with "b" then 
  13. b=b+1
  14. close number= "b"b
  15. etc..
  16. 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
Oct 1 '13 #1
Share this Question
Share on Google+
2 Replies

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

Expert 5K+
P: 8,434
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.
Oct 4 '13 #3

Post your reply

Sign in to post your reply or Sign up for a free account.