Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. The Lounge
  3. find out number of characters

find out number of characters

Scheduled Pinned Locked Moved The Lounge
question
13 Posts 11 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nicetohaveyou
    wrote on last edited by
    #1

    is there any built in funcion which gives the number of times a character appears in astring in VB? like incase of find number of times the character 'a' appears in the string 'Abbacus'. is 2

    S R M M C 8 Replies Last reply
    0
    • N nicetohaveyou

      is there any built in funcion which gives the number of times a character appears in astring in VB? like incase of find number of times the character 'a' appears in the string 'Abbacus'. is 2

      S Offline
      S Offline
      Steve Mayfield
      wrote on last edited by
      #2

      I haven't a clue...but if you post your question in the correct forum (which is here[^]) you might get an answer... Steve

      M 1 Reply Last reply
      0
      • N nicetohaveyou

        is there any built in funcion which gives the number of times a character appears in astring in VB? like incase of find number of times the character 'a' appears in the string 'Abbacus'. is 2

        R Offline
        R Offline
        R Giskard Reventlov
        wrote on last edited by
        #3

        If you are too stupid to understand where programming questions go then, plainly, you're too stupid to program. Uninstall everything form your pc and try to get your money back... you're going to need it.

        home articles for dummies

        1 Reply Last reply
        0
        • N nicetohaveyou

          is there any built in funcion which gives the number of times a character appears in astring in VB? like incase of find number of times the character 'a' appears in the string 'Abbacus'. is 2

          M Offline
          M Offline
          Mustafa Ismail Mustafa
          wrote on last edited by
          #4

          An interesting question from someone with such an interesting name. So, its nice to have me, eh? Nice to have a loud mouth that can harass you continuously until underworld come? Someone that can get under your skin, which is an amazing feat I guarantee you for a 6'2", 250+ lbs monster such as I. and wreak havoc from within. Would you care to have that? Begone foul thing lest thy presence render this forum stinky. PS. NEVER post programming questions in the forum

          "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook "There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib "Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"

          1 Reply Last reply
          0
          • N nicetohaveyou

            is there any built in funcion which gives the number of times a character appears in astring in VB? like incase of find number of times the character 'a' appears in the string 'Abbacus'. is 2

            M Offline
            M Offline
            Malcolm Smart
            wrote on last edited by
            #5

            nicetohaveyou wrote:

            like incase of find number of times the character 'a' appears in the string 'Abbacus'. is 2

            Create a lookup with every single word known to man (or woman) and another lookup with a count of every character in that word. Then use a for next loop to go down the list (don't sort or order the list, too difficult), but go down teh list, compare your word to the one in the list and if it matches you're on to a winner. or a better method would be to restrict the words the user can enter to Abbacus, only let the search for A and always return 2, in which case, you're done! Congratulations.

            "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

            1 Reply Last reply
            0
            • N nicetohaveyou

              is there any built in funcion which gives the number of times a character appears in astring in VB? like incase of find number of times the character 'a' appears in the string 'Abbacus'. is 2

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              Is this the first lounge programming question for the new site ?

              Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

              1 Reply Last reply
              0
              • N nicetohaveyou

                is there any built in funcion which gives the number of times a character appears in astring in VB? like incase of find number of times the character 'a' appears in the string 'Abbacus'. is 2

                P Offline
                P Offline
                Pete OHanlon
                wrote on last edited by
                #7

                nicetohaveyou wrote:

                like incase of find number of times the character 'a' appears in the string 'Abbacus'

                Nope. It's only once. There's this strange concept in computing that you probably haven't come across before called the ASCII set where the letter a isn't the same as the letter A. I guess this lack of understanding is why you completely ignored that honking bit of bold text at the top that tells you not to post a programming question in the loungslounge.

                Deja View - the feeling that you've seen this post before.

                My blog | My articles

                modified on Wednesday, December 05, 2007 4:24:47 AM

                M 1 Reply Last reply
                0
                • P Pete OHanlon

                  nicetohaveyou wrote:

                  like incase of find number of times the character 'a' appears in the string 'Abbacus'

                  Nope. It's only once. There's this strange concept in computing that you probably haven't come across before called the ASCII set where the letter a isn't the same as the letter A. I guess this lack of understanding is why you completely ignored that honking bit of bold text at the top that tells you not to post a programming question in the loungslounge.

                  Deja View - the feeling that you've seen this post before.

                  My blog | My articles

                  modified on Wednesday, December 05, 2007 4:24:47 AM

                  M Offline
                  M Offline
                  Malcolm Smart
                  wrote on last edited by
                  #8

                  Pete O'Hanlon wrote:

                  loungs.

                  Ascii 's' and ascii 'e' are interchangeable though? Nics ons Psts.

                  "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

                  P 1 Reply Last reply
                  0
                  • M Malcolm Smart

                    Pete O'Hanlon wrote:

                    loungs.

                    Ascii 's' and ascii 'e' are interchangeable though? Nics ons Psts.

                    "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

                    P Offline
                    P Offline
                    Pete OHanlon
                    wrote on last edited by
                    #9

                    Malcolm Smart wrote:

                    Nics ons Psts

                    :laugh: Like it. Thanks for spotting the mistake.

                    Deja View - the feeling that you've seen this post before.

                    My blog | My articles

                    1 Reply Last reply
                    0
                    • S Steve Mayfield

                      I haven't a clue...but if you post your question in the correct forum (which is here[^]) you might get an answer... Steve

                      M Offline
                      M Offline
                      megaadam
                      wrote on last edited by
                      #10

                      Well Steve, in order to ask a programming question, you actually have to be a programmer. So in this case, I wouldn't worry. :suss:

                      _____________________________________ Action without thought is not action Action without emotion is not life

                      N 1 Reply Last reply
                      0
                      • M megaadam

                        Well Steve, in order to ask a programming question, you actually have to be a programmer. So in this case, I wouldn't worry. :suss:

                        _____________________________________ Action without thought is not action Action without emotion is not life

                        N Offline
                        N Offline
                        NormDroid
                        wrote on last edited by
                        #11

                        :laugh: you guys are beating me today the some of the best answers yet.

                        WPF - Imagineers Wanted Follow your nose using DoubleAnimationUsingPath

                        1 Reply Last reply
                        0
                        • N nicetohaveyou

                          is there any built in funcion which gives the number of times a character appears in astring in VB? like incase of find number of times the character 'a' appears in the string 'Abbacus'. is 2

                          E Offline
                          E Offline
                          El Corazon
                          wrote on last edited by
                          #12

                          nicetohaveyou wrote:

                          is there any built in funcion which gives the number of times a character appears in astring in VB?

                          yes, and all the characters hang out in the VB forum.

                          _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                          1 Reply Last reply
                          0
                          • N nicetohaveyou

                            is there any built in funcion which gives the number of times a character appears in astring in VB? like incase of find number of times the character 'a' appears in the string 'Abbacus'. is 2

                            T Offline
                            T Offline
                            Thomas Krojer
                            wrote on last edited by
                            #13

                            yes, there is a method. if you ask me the same question in the vb forum, i will tell you ...

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups