Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Visual Basic 2008 Character tallying

  1. Sep 8, 2008 #1
    I'm trying to write a program which analyzes a string consisting of multiple names/words and outputs how many of each letter occurrences there are. (including upper and lower case characters.)

    i.e. string: "lafayette polk detroit"
    contains: 2-a's, 3-e's, 1-i, 2-o's, etc., etc.

    I'm pulling my hair out trying to figure this out. Any assistance is greatly appreciated.
  2. jcsd
  3. Sep 8, 2008 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Where are you stuck?
  4. Sep 8, 2008 #3
    Well, I've scrapped several ideas. So, at this point, I'm back to nothing but a blank form with text boxes...starting over!

    I'm not the most proficient programmer, I'm not even good. I'm trying to create something to make my life at work easier.

    I've tried all kinds of online code "snippets", but nothing is working to fit my needs.

    Any advice on how to get started in the right direction?
  5. Sep 9, 2008 #4
    Ok, I've got it all working now. However one question remains... How do I convert list box items to a string? The items are string values.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Visual Basic 2008 Character tallying
  1. Visual basic .net 2008 (Replies: 0)

  2. Fortran / Visual Basic ? (Replies: 13)