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

C#

 
AnswerRe: How to find the position of a word [modified] Pin
Kristian Sixhøj16-Feb-09 1:42
Kristian Sixhøj16-Feb-09 1:42 
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 
try this...

string number = "344";//an example

if(number.Contains(','))//already has comma
{
string[] split = number.Split(',', StringSplitOptions.RemoveEmptyValues);
//not 100% sure on the string split option code

if(split.Length == 1)//nothing after the comma
number += "00";
else if(split[1].Length == 1)//need to add 1 zero
number += "0";
//else the number is already as desired


}
else//no comma
number += ",00";

If only MySelf.Visible was more than just a getter...

A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting

GeneralRe: Add two zéro after a comma Pin
Pete O'Hanlon16-Feb-09 1:34
mvePete O'Hanlon16-Feb-09 1:34 
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 

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.