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. String Builder

String Builder

Scheduled Pinned Locked Moved C#
helptutorial
21 Posts 9 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.
  • R ramdil

    Hi thanks for the reply Actually i have an application which will recieve messages from some other application.It can happen at any time.Now i have a recieve method for this purpose..but i dont want to do any operations as soon as i recieve any id but i want it to be used later .So inorder to not loose the incoming id, i decided to used string builder so that i can append one by one the id's which are coming..but now if i want to extract it or split it,,i dont have any split method in string builder ,its only in string ..so what do i need to do. Hope i am clear.

    Regards DilipRam

    V Offline
    V Offline
    V 0
    wrote on last edited by
    #21

    Then it is as I said: string [] ids = strIncomingEventID.ToString().Split(...); You can also do this if it is easier for you: string allids = strIncomingEventID.ToString(); string [] ids = allids.Split(...); The ToString() method of the StringBuilder class returns a variable with type string. If you're using Visual Studio, try putting a "." after ToString() and you'll see in intellisense that Split will come up in the list. (PS: for you info I put the "..." in Split because it is an overloaded method, view the signature on MSDN for more info on which arguments the Split method expects.) hope this helps.

    V.
    Stop smoking so you can: Enjoy longer the money you save. Moviereview Archive

    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