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

C#

 
QuestionGetting data from dyamic generated DataGridView in another form Pin
runli6-Jul-09 21:21
runli6-Jul-09 21:21 
AnswerRe: Getting data from dyamic generated DataGridView in another form Pin
dan!sh 6-Jul-09 22:34
professional dan!sh 6-Jul-09 22:34 
GeneralRe: Getting data from dyamic generated DataGridView in another form Pin
runli6-Jul-09 23:58
runli6-Jul-09 23:58 
QuestionReplace numbers after the . with other numbers Pin
ksaw1236-Jul-09 20:52
ksaw1236-Jul-09 20:52 
AnswerRe: Replace numbers after the . with other numbers Pin
0x3c06-Jul-09 20:59
0x3c06-Jul-09 20:59 
GeneralRe: Replace numbers after the . with other numbers Pin
ksaw1236-Jul-09 22:24
ksaw1236-Jul-09 22:24 
AnswerRe: Replace numbers after the . with other numbers Pin
dan!sh 6-Jul-09 22:31
professional dan!sh 6-Jul-09 22:31 
GeneralRe: Replace numbers after the . with other numbers Pin
ksaw1236-Jul-09 23:27
ksaw1236-Jul-09 23:27 
Thanks...

the problem I am facing is that how can I make the code to replace any number (not specify number) with a specify number.
for example,
I have these numbers in the file:
-9999.1234
-9999.2345
-4021.0101
-9999.0987
-9999.7654
-7892.4132
-9999.0393
and etc...

I want any number that has -9999. (like -9999.1234, -9999.2345 and etc...) to be replaced with -9999.0000

I want a code that can do that in C#.

Note:
I wrote a code to read from the file and put each line in a array of type string.

What I want is that a code to replace any number that has -9999. (like -9999.1234, -9999.2345 and etc...) with -9999.0000

Regards,
GeneralRe: Replace numbers after the . with other numbers Pin
dan!sh 6-Jul-09 23:50
professional dan!sh 6-Jul-09 23:50 
GeneralRe: Replace numbers after the . with other numbers Pin
himanshu25617-Jul-09 0:15
himanshu25617-Jul-09 0:15 
GeneralRe: Replace numbers after the . with other numbers Pin
OriginalGriff7-Jul-09 0:20
mveOriginalGriff7-Jul-09 0:20 
GeneralRe: Replace numbers after the . with other numbers Pin
Alan N7-Jul-09 0:01
Alan N7-Jul-09 0:01 
GeneralRe: Replace numbers after the . with other numbers [modified] Pin
Pete O'Hanlon7-Jul-09 0:19
mvePete O'Hanlon7-Jul-09 0:19 
GeneralRe: Replace numbers after the . with other numbers Pin
dan!sh 7-Jul-09 0:32
professional dan!sh 7-Jul-09 0:32 
GeneralRe: Replace numbers after the . with other numbers Pin
Pete O'Hanlon7-Jul-09 0:46
mvePete O'Hanlon7-Jul-09 0:46 
GeneralRe: Replace numbers after the . with other numbers Pin
OriginalGriff7-Jul-09 1:40
mveOriginalGriff7-Jul-09 1:40 
GeneralRe: Replace numbers after the . with other numbers Pin
Pete O'Hanlon7-Jul-09 1:53
mvePete O'Hanlon7-Jul-09 1:53 
Questionhow to create controls @ run time? Pin
CoderForEver6-Jul-09 20:21
CoderForEver6-Jul-09 20:21 
AnswerRe: how to create controls @ run time? Pin
DaveyM696-Jul-09 22:22
professionalDaveyM696-Jul-09 22:22 
JokeRe: how to create controls @ run time? Pin
Rajesh R Subramanian7-Jul-09 0:01
professionalRajesh R Subramanian7-Jul-09 0:01 
GeneralRe: how to create controls @ run time? Pin
PandemoniumPasha7-Jul-09 0:38
PandemoniumPasha7-Jul-09 0:38 
GeneralRe: how to create controls @ run time? Pin
Pete O'Hanlon7-Jul-09 0:58
mvePete O'Hanlon7-Jul-09 0:58 
GeneralRe: how to create controls @ run time? Pin
CoderForEver7-Jul-09 1:48
CoderForEver7-Jul-09 1:48 
GeneralRe: how to create controls @ run time? Pin
DaveyM697-Jul-09 2:04
professionalDaveyM697-Jul-09 2:04 
Questiondetect bluetooth device Pin
nithydurai6-Jul-09 19:56
nithydurai6-Jul-09 19:56 

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.