Results 1 to 3 of 3

Thread: Removing items from strings?

  1. #1

    Thread Starter
    Addicted Member kalicki's Avatar
    Join Date
    Mar 2001
    Location
    Orlando, Florida
    Posts
    134

    Removing items from strings?

    Ok, heres my prog:
    You click on a checkbox, which depending on whether it is the first item in the string or not adds one of two things to the end. What I can't however figure out is how to remove that if someone decides to uncheck the box.

    Thanks for any help,
    Bryan Kalicki

  2. #2
    jim mcnamara
    Guest
    Use the Replace function.

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    lets say your string is

    HelloYou

    you can remove you by using replace

    Replace("HelloYou","You","")
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width