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. Insert character

Insert character

Scheduled Pinned Locked Moved C#
questionhelptutorial
3 Posts 3 Posters 1 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.
  • M Offline
    M Offline
    M Riaz Bashir
    wrote on last edited by
    #1

    Hi, Kindly help me that, How can I insert a character between any string value? Example: string value is : ABC/DEF/GHI after inserting..........: ABC-DEF-GHI Thank you in advance

    B R 2 Replies Last reply
    0
    • M M Riaz Bashir

      Hi, Kindly help me that, How can I insert a character between any string value? Example: string value is : ABC/DEF/GHI after inserting..........: ABC-DEF-GHI Thank you in advance

      B Offline
      B Offline
      blackjack2150
      wrote on last edited by
      #2

      Use the Insert method of the string class. However, in your example you replaced a character with another one. In this case use the Replace method.

      1 Reply Last reply
      0
      • M M Riaz Bashir

        Hi, Kindly help me that, How can I insert a character between any string value? Example: string value is : ABC/DEF/GHI after inserting..........: ABC-DEF-GHI Thank you in advance

        R Offline
        R Offline
        Revathij
        wrote on last edited by
        #3

        use Replace function for example : string str="ABC/DEF/GHI"; str=str.replace('/','-')

        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