Click here to Skip to main content
11,641,659 members (61,547 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASM
I have return dynamic data into string. IT has come as "First rate $ 30.00"
"Second rate $ 130.00"
"Legacy $ 630.00"

Now i want how can i get only numeric data i.e. 30.00, 130.00, 630.00.

If anybody have an idea kindly share to me.
Posted 8-Dec-12 19:42pm
Mas112.3K
Edited 8-Dec-12 19:43pm
v2
Comments
Sergey Alexandrovich Kryukov at 9-Dec-12 2:14am
   
ASM? Why did you accept Solution 1 then? :-)
--SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I'm using only one string here,
string str = "First rate $ 30.00";
str = str.Split('$')[1].ToString();
 
richTextBox1.Text = str;
Similarly, you can do this for all strings... Smile | :)
  Permalink  
Comments
Mas11 at 9-Dec-12 2:01am
   
Thanks a lot !!.
Krunal Rohit at 9-Dec-12 2:05am
   
Welcome.!! Cheers :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Mika Wendelius 260
1 DamithSL 248
2 Afzaal Ahmad Zeeshan 129
3 OriginalGriff 120
4 Sergey Alexandrovich Kryukov 80
0 Mika Wendelius 460
1 OriginalGriff 265
2 DamithSL 258
3 CPallini 169
4 Afzaal Ahmad Zeeshan 149


Advertise | Privacy | Mobile
Web01 | 2.8.150731.1 | Last Updated 9 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100