Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
AnswerIndexOutOfRangeException Pin
Luc Pattyn16-Feb-09 2:50
sitebuilderLuc Pattyn16-Feb-09 2:50 
GeneralRe: IndexOutOfRangeException [modified] Pin
Kristian Sixhøj16-Feb-09 2:56
Kristian Sixhøj16-Feb-09 2:56 
AnswerRe: How to find the position of a word Pin
Calin Tatar16-Feb-09 1:43
Calin Tatar16-Feb-09 1:43 
AnswerRe: How to find the position of a word Pin
musefan16-Feb-09 2:25
musefan16-Feb-09 2:25 
QuestionAdd two zéro after a comma Pin
abbd16-Feb-09 1:07
abbd16-Feb-09 1:07 
GeneralRe: Add two zéro after a comma Pin
Kristian Sixhøj16-Feb-09 1:14
Kristian Sixhøj16-Feb-09 1:14 
AnswerRe: Add two zéro after a comma Pin
musefan16-Feb-09 1:14
musefan16-Feb-09 1:14 
GeneralRe: Add two zéro after a comma Pin
Pete O'Hanlon16-Feb-09 1:34
mvePete O'Hanlon16-Feb-09 1:34 
I'm sorry to tell you, but this is an extremely bad idea. Basically, if this application ran in a culture on my machine, then it wouldn't work because we use the decimal as the separator, rather than commas. Commas are used here to denote thousands, millions, etc. For instance, we would write 3,442,167.00 which would be written out as garbage by your code.

What you should do, of course, is use a string formatter and actually apply the appropriate culture. That's it - nothing complicated.

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

My blog | My articles | MoXAML PowerToys



GeneralRe: Add two zéro after a comma Pin
musefan16-Feb-09 1:45
musefan16-Feb-09 1:45 
GeneralRe: Add two zéro after a comma Pin
Tony Pottier16-Feb-09 4:22
Tony Pottier16-Feb-09 4:22 
GeneralRe: Add two zéro after a comma Pin
musefan16-Feb-09 5:36
musefan16-Feb-09 5:36 
GeneralRe: Add two zéro after a comma Pin
Guffa16-Feb-09 5:15
Guffa16-Feb-09 5:15 
GeneralRe: Add two zéro after a comma Pin
musefan16-Feb-09 5:43
musefan16-Feb-09 5:43 
AnswerRe: Add two zéro after a comma Pin
stancrm16-Feb-09 1:21
stancrm16-Feb-09 1:21 
QuestionDynamically assign values to instance Pin
Stevo Z16-Feb-09 0:59
Stevo Z16-Feb-09 0:59 
AnswerRe: Dynamically assign values to instance Pin
musefan16-Feb-09 1:05
musefan16-Feb-09 1:05 
GeneralRe: Dynamically assign values to instance Pin
Stevo Z16-Feb-09 1:15
Stevo Z16-Feb-09 1:15 
AnswerRe: Dynamically assign values to instance Pin
DaveyM6916-Feb-09 1:22
professionalDaveyM6916-Feb-09 1:22 
GeneralRe: Dynamically assign values to instance Pin
Stevo Z16-Feb-09 1:25
Stevo Z16-Feb-09 1:25 
GeneralRe: Dynamically assign values to instance Pin
DaveyM6916-Feb-09 1:59
professionalDaveyM6916-Feb-09 1:59 
GeneralRe: Dynamically assign values to instance Pin
Stevo Z16-Feb-09 2:11
Stevo Z16-Feb-09 2:11 
AnswerRe: Dynamically assign values to instance Pin
S. Senthil Kumar16-Feb-09 1:22
S. Senthil Kumar16-Feb-09 1:22 
GeneralRe: Dynamically assign values to instance Pin
Stevo Z16-Feb-09 1:27
Stevo Z16-Feb-09 1:27 
GeneralRe: Dynamically assign values to instance Pin
S. Senthil Kumar16-Feb-09 1:55
S. Senthil Kumar16-Feb-09 1:55 
GeneralRe: Dynamically assign values to instance Pin
Stevo Z16-Feb-09 2:13
Stevo Z16-Feb-09 2:13 

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.