Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String Manipulation
Message
From
28/06/2010 12:57:24
 
 
To
28/06/2010 12:50:35
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01470812
Message ID:
01470816
Views:
55
>>Hi,
>>
>>I have a string like this:
>>
>>"LastName, FirstName, MiddleName"
>>
>>and sometimes it could just be this:
>>
>>"CompanyName"
>>
>>I want to add a string into these strings so they end up like this:
>>
>>"LastName DESC, FirstName DESC, MiddleName DESC"
>>
>>or:
>>
>>"CompanyName DESC"
>>
>>How would I do this in C#?
>
>Basically this
>
>			string s = "LastName, FirstName, MiddleName";
>
>			s = s.Replace(",", " DESC,") + " DESC";
>
I don't think that works in the case of "CompanyName"
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform