Reply
Old July 11th, 2011 Top | #1
 
Complete's Avatar
OSNN Addict
Joined: August 2005
Posts: 94
Reputation: 10
Power: 83

Default changing a character in a C# string

changing a character in a C# string
suppose I have created a string in C# and I want to change the last character to a blank.

private static string sOldMassiveOutput;

public static string oldmassiveoutput
{
get { return sOldMassiveOutput.Trim(); }
set { sOldMassiveOutput = value; }
}
oldmassiveoutput[oldmassiveoutput.Length - 1] = ' ';

This will not work.
How do I make it work?
Complete is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++: cant resolve string --> string[] dubstar Web Design & Coding 6 May 27th, 2007 8:10am
Search string length SPeedY_B Site Problems & Feedback 6 January 14th, 2004 4:42am
modem string bluzeboy Windows Desktop Systems 2 November 22nd, 2002 2:49pm
modem string bluzeboy Windows Desktop Systems 3 September 20th, 2002 2:08am
Changing Password Character :P stuppy Windows Desktop Systems 1 April 25th, 2002 11:18pm