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
  1. Home
  2. Web Development
  3. ASP.NET
  4. counting char in string

counting char in string

Scheduled Pinned Locked Moved ASP.NET
help
3 Posts 3 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.
  • A Offline
    A Offline
    anj1983
    wrote on last edited by
    #1

    I need to count how many char are there in string. How is it possible.Could anyone help me out thanks leo Kathmandu, Nepal

    T B 2 Replies Last reply
    0
    • A anj1983

      I need to count how many char are there in string. How is it possible.Could anyone help me out thanks leo Kathmandu, Nepal

      T Offline
      T Offline
      Tuwing Sabado
      wrote on last edited by
      #2

      Dim str as string = "HELLO WORLD" Dim charCount as int16 = str.length response.write(charCount) Regards,

      1 Reply Last reply
      0
      • A anj1983

        I need to count how many char are there in string. How is it possible.Could anyone help me out thanks leo Kathmandu, Nepal

        B Offline
        B Offline
        benqazou
        wrote on last edited by
        #3

        I guess you need to learn more about string manipulation in either C# or VB.Net. There are many tutotials on the net. Anyway, If you'rre using C# here the code : string str1 = "hello"; int lenstr1 = str1.Length;

        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