Click here to Skip to main content
15,902,854 members
Home / Discussions / C#
   

C#

 
GeneralString Contains String Pin
MrEyes18-Nov-04 3:01
MrEyes18-Nov-04 3:01 
GeneralRe: String Contains String Pin
MrEyes18-Nov-04 3:10
MrEyes18-Nov-04 3:10 
Generaleasy: string formatting Pin
bouli18-Nov-04 1:17
bouli18-Nov-04 1:17 
GeneralRe: easy: string formatting Pin
Ami Bar18-Nov-04 4:11
Ami Bar18-Nov-04 4:11 
GeneralRe: easy: string formatting Pin
bouli18-Nov-04 4:15
bouli18-Nov-04 4:15 
GeneralRe: easy: string formatting Pin
Dave Kreskowiak18-Nov-04 6:33
mveDave Kreskowiak18-Nov-04 6:33 
GeneralRe: easy: string formatting Pin
bouli18-Nov-04 9:06
bouli18-Nov-04 9:06 
GeneralRe: easy: string formatting Pin
Dave Kreskowiak18-Nov-04 9:46
mveDave Kreskowiak18-Nov-04 9:46 
The code you came up with is needlessly complex, doing multiple conversions that are both redundent and useless. Your code converted a text property to an int, back to a string, then broke that into an array of chars, then converted that back to a string again.

All you had to do is dive into the documentation on .ToString() and it would have made your life so much easier. It probably would have taken you the same amount of time to read that and come up with the correct answer to your problem as it did to try everything under the sun and come up with the bastardized statement you posted.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: easy: string formatting Pin
Nick Parker18-Nov-04 11:40
protectorNick Parker18-Nov-04 11:40 
GeneralProblem with Event and Timer Pin
Leon van Wyk18-Nov-04 1:04
professionalLeon van Wyk18-Nov-04 1:04 
GeneralRe: Problem with Event and Timer Pin
Daniel Turini18-Nov-04 1:26
Daniel Turini18-Nov-04 1:26 
GeneralRe: Problem with Event and Timer Pin
Leon van Wyk18-Nov-04 1:36
professionalLeon van Wyk18-Nov-04 1:36 
GeneralRe: Problem with Event and Timer Pin
Daniel Turini18-Nov-04 23:16
Daniel Turini18-Nov-04 23:16 
GeneralStopping a com object Pin
totig17-Nov-04 22:58
totig17-Nov-04 22:58 
GeneralRe: Stopping a com object Pin
Daniel Turini17-Nov-04 23:13
Daniel Turini17-Nov-04 23:13 
GeneralLooking for efficient way to insert records Pin
Reinier Beeckman17-Nov-04 21:10
Reinier Beeckman17-Nov-04 21:10 
GeneralHighlight SelectedText's Background in RichTextBox Pin
orlyg17-Nov-04 20:59
orlyg17-Nov-04 20:59 
GeneralRe: Highlight SelectedText's Background in RichTextBox Pin
Daniel Turini17-Nov-04 23:19
Daniel Turini17-Nov-04 23:19 
GeneralRe: Highlight SelectedText's Background in RichTextBox Pin
OrlyGoren18-Nov-04 6:06
OrlyGoren18-Nov-04 6:06 
GeneralRe: Highlight SelectedText's Background in RichTextBox Pin
leppie18-Nov-04 8:34
leppie18-Nov-04 8:34 
Generalhardware control Pin
Mridang Agarwalla17-Nov-04 20:57
Mridang Agarwalla17-Nov-04 20:57 
Generalwindows context menu Pin
Mridang Agarwalla17-Nov-04 20:53
Mridang Agarwalla17-Nov-04 20:53 
GeneralRe: windows context menu Pin
Luis Alonso Ramos19-Nov-04 9:16
Luis Alonso Ramos19-Nov-04 9:16 
Generaltaskbar button grouping Pin
yu-yu17-Nov-04 18:33
yu-yu17-Nov-04 18:33 
GeneralUser COntrols Pin
Brendan Vogt17-Nov-04 18:31
Brendan Vogt17-Nov-04 18:31 

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.