Click here to Skip to main content
15,898,373 members
Home / Discussions / C#
   

C#

 
QuestionDeleting words from string Pin
Ryno Burger4-Oct-07 5:42
Ryno Burger4-Oct-07 5:42 
AnswerRe: Deleting words from string Pin
Anthony Mushrow4-Oct-07 5:45
professionalAnthony Mushrow4-Oct-07 5:45 
GeneralRe: Deleting words from string Pin
KaineDunno4-Oct-07 5:50
KaineDunno4-Oct-07 5:50 
GeneralRe: Deleting words from string Pin
Anthony Mushrow4-Oct-07 6:00
professionalAnthony Mushrow4-Oct-07 6:00 
GeneralRe: Deleting words from string Pin
Ryno Burger4-Oct-07 6:00
Ryno Burger4-Oct-07 6:00 
GeneralRe: Deleting words from string Pin
Ryno Burger4-Oct-07 6:11
Ryno Burger4-Oct-07 6:11 
GeneralRe: Deleting words from string Pin
Ryno Burger4-Oct-07 6:19
Ryno Burger4-Oct-07 6:19 
GeneralRe: Deleting words from string Pin
Ryno Burger4-Oct-07 6:31
Ryno Burger4-Oct-07 6:31 
Is there a neater more professional way to re-write the code below?

<br />
public string StripString(string statementString)<br />
         {<br />
             string alteredStatement = string.Empty;<br />
<br />
             string keyword1 = "[dbo].";<br />
             string keyword2 = "[";<br />
             string keyword3 = "]";<br />
             string remover = "";<br />
<br />
             string tmpStr1 = statementString.Replace(keyword1, remover);<br />
             string tmpStr2 = tmpStr1.Replace(keyword2, remover);<br />
             <br />
             alteredStatement = tmpStr2.Replace(keyword3, remover);<br />
<br />
             return alteredStatement;<br />
         }<br />

GeneralRe: Deleting words from string Pin
KaineDunno4-Oct-07 8:22
KaineDunno4-Oct-07 8:22 
GeneralRe: Deleting words from string Pin
Ryno Burger4-Oct-07 8:44
Ryno Burger4-Oct-07 8:44 
GeneralRe: Deleting words from string Pin
Andrew Rissing4-Oct-07 9:08
Andrew Rissing4-Oct-07 9:08 
GeneralRe: Deleting words from string Pin
Judah Gabriel Himango4-Oct-07 9:11
sponsorJudah Gabriel Himango4-Oct-07 9:11 
AnswerRe: Deleting words from string Pin
Christian Graus4-Oct-07 10:54
protectorChristian Graus4-Oct-07 10:54 
AnswerRe: Deleting words from string Pin
Luc Pattyn4-Oct-07 12:08
sitebuilderLuc Pattyn4-Oct-07 12:08 
GeneralRe: Deleting words from string Pin
Anthony Mushrow4-Oct-07 12:27
professionalAnthony Mushrow4-Oct-07 12:27 
GeneralRe: Deleting words from string Pin
Luc Pattyn4-Oct-07 12:44
sitebuilderLuc Pattyn4-Oct-07 12:44 
GeneralRe: Deleting words from string Pin
Anthony Mushrow4-Oct-07 15:02
professionalAnthony Mushrow4-Oct-07 15:02 
QuestionSingle instance over a local area network Pin
Martin Hart Turner4-Oct-07 5:37
Martin Hart Turner4-Oct-07 5:37 
AnswerRe: Single instance over a local area network Pin
KaineDunno4-Oct-07 5:53
KaineDunno4-Oct-07 5:53 
GeneralRe: Single instance over a local area network Pin
Anthony Mushrow4-Oct-07 5:55
professionalAnthony Mushrow4-Oct-07 5:55 
AnswerRe: Single instance over a local area network Pin
Anthony Mushrow4-Oct-07 5:53
professionalAnthony Mushrow4-Oct-07 5:53 
GeneralRe: Single instance over a local area network Pin
Martin Hart Turner4-Oct-07 6:01
Martin Hart Turner4-Oct-07 6:01 
GeneralRe: Single instance over a local area network Pin
Ravi Bhavnani4-Oct-07 19:07
professionalRavi Bhavnani4-Oct-07 19:07 
QuestionDirectory Selector Pin
ffowler4-Oct-07 5:06
ffowler4-Oct-07 5:06 
AnswerRe: Directory Selector Pin
Anthony Mushrow4-Oct-07 5:08
professionalAnthony Mushrow4-Oct-07 5:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.