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. General Programming
  3. C#
  4. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved C#
6 Posts 5 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.
  • P Offline
    P Offline
    pinna_hari
    wrote on last edited by
    #1

    [Message Deleted]

    P K R 3 Replies Last reply
    0
    • P pinna_hari

      [Message Deleted]

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      .Substring?

      haripinna wrote:

      pick a single letter and the position from that string

      if you mean "and get the position", then try .IndexOf

      modified on Saturday, May 17, 2008 11:16 AM

      P 1 Reply Last reply
      0
      • P pinna_hari

        [Message Deleted]

        K Offline
        K Offline
        KennyPatel
        wrote on last edited by
        #3

        Or Use .CharAt Thanks

        "Good Thing Goes With Good People..."

        1 Reply Last reply
        0
        • P pinna_hari

          [Message Deleted]

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          Not sure what you mean by "pick". If you mean "find", see the IndexOf()[^] method. /ravi

          My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

          1 Reply Last reply
          0
          • P PIEBALDconsult

            .Substring?

            haripinna wrote:

            pick a single letter and the position from that string

            if you mean "and get the position", then try .IndexOf

            modified on Saturday, May 17, 2008 11:16 AM

            P Offline
            P Offline
            pinna_hari
            wrote on last edited by
            #5

            Thanks for giving response. i can't get you.. please provide code for that.. Thnaks, Pinna

            Pinna

            D 1 Reply Last reply
            0
            • P pinna_hari

              Thanks for giving response. i can't get you.. please provide code for that.. Thnaks, Pinna

              Pinna

              D Offline
              D Offline
              DaveyM69
              wrote on last edited by
              #6

              Did you search for Substring? It's a method which you can use on any string - look in MSDN

              TextBox1.Text.Substring(i, l);

              will retrieve the number of characters specified by l from the position specified by i.

              Dave

              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