Results 1 to 2 of 2

Thread: I need help

  1. #1
    Banned

    Badge

    Join Date
    Oct 2013
    Location
    Being Grumpy
    Posts
    1,301
    Points
    285
         User Info     Contact     Gamer ID
    Join Date
    Oct 2013
    Location
    Being Grumpy
    Posts
    1,301
    Points
    285
    Gamer IDs

    Gamertag: CandyCrusher PSN ID: CandyCrusher

    Contact info:

    Youtube Channel: http://www.youtube.com/

    Default I need help

    ok, say I'm making a program using c# or vb in visual basic and I want it to be where you type something in a text box, press a button, and it brings the text down to another textbox but with the same text changed a little, I already know all of that, but how would I make it so it replaces a character to another character without re-typing it? EG: first text box = 80909090 (THEN I PRESS THE BUTTON) and then it turns into C2909090

    0 Not allowed! Not allowed!

  2. #2
    I agree. MatthewH's Avatar
    Join Date
    Jul 2011
    Location
    North Carolina
    Posts
    3,481
    Points
    15,810
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    North Carolina
    Posts
    3,481
    Points
    15,810

    Default

    For C# you use the string replace method. Example...
    Code:
    string String = "ABC";
    string newString = String.Replace("ABC", "BCA");
    That's for strings though...I can't remember the char replace off the top of my head.

    -1 Not allowed! Not allowed!


Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 04:54 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.