Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 21st, 2006, 12:07 AM
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Replace In c#

hi all,

i am new to this community.

i am using c# & i want to know what is the alternate keyword for replace.

i am using vb script files as reference & in that one they have used replace keyword & i want to know the alternate keyword in c#.

plz help me.

  #2 (permalink)  
Old June 21st, 2006, 12:56 AM
Authorized User
 
Join Date: Jun 2003
Location: , , Norway.
Posts: 95
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi.

Maybe you should try posting in a C# forum? This is SQL Language.

Gert

  #3 (permalink)  
Old July 3rd, 2006, 03:25 AM
Authorized User
 
Join Date: Nov 2005
Location: , New Delhi, India.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
In C#, there is two methods...
Using StringBuffer.Replace method and
using String.Repalce.method
==========
Example:::
==========
String str="SubhenduDe";
str.Replace("bhen","asdf");
__________________________

StringBuffer str=new StringBuffer();
str.append("SubhenduDe");
str.Replace("bhen","asdf");

Subhendu De
subhendude@gmail.com
Software Developer
New Delhi, India


Similar Threads
Thread Thread Starter Forum Replies Last Post
replace ' and " with \' and \" Brian Campbell XSLT 4 May 24th, 2006 10:49 AM
replace "." with "/" thelos Excel VBA 1 September 14th, 2005 10:47 AM
Replace crmpicco VB How-To 15 May 20th, 2005 01:34 PM
replace() Missy_K Javascript 1 January 16th, 2004 11:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.