![]() |
|
|
|
#1 |
|
I can't seem to get the money format (String.Format("{0:c}") to work for
data coming from my database. If I do WagesMin.Text = String.Format("{0:c}",10000)) This will put "$10,000.00" into WagesMin.Text. But if I do this where WagesMin = 1,000.00 WagesMin.Text = String.Format("{0:c}",emailReader("WagesMin")) I get 1,000.000. No formatting at all. With Calculate a function that returns a Single, if I do: WagesMin.Text = String.Format("{0:c}",CalculateYearly(emailReader( "WagesMin"))) it would come back something like: $230,000.00 (as I would expect) Do I need to do some sort conversion for the emailReader("WagesMin") before I do the String.Format? Thanks, Tom tshad |
|
|
|
|
#2 |
|
Posts: n/a
|
verify emailReader("WagesMin") is a string
"tshad" <> wrote in message news:... >I can't seem to get the money format (String.Format("{0:c}") to work for >data coming from my database. > > If I do > > WagesMin.Text = String.Format("{0:c}",10000)) > > This will put "$10,000.00" into WagesMin.Text. > > But if I do this where WagesMin = 1,000.00 > > WagesMin.Text = String.Format("{0:c}",emailReader("WagesMin")) > > I get 1,000.000. No formatting at all. > > With Calculate a function that returns a Single, if I do: > > WagesMin.Text = > String.Format("{0:c}",CalculateYearly(emailReader( "WagesMin"))) > > it would come back something like: > > $230,000.00 (as I would expect) > > Do I need to do some sort conversion for the emailReader("WagesMin") > before I do the String.Format? > > Thanks, > > Tom > > TJS |
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2009
Posts: 1
|
Excuse me! the CalculateYearly() exit in which library?
lionstar |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why No One Wins in the High-Def Format War | Ablang | DVD Video | 50 | 11-04-2007 04:19 AM |
| MAKE FAST MONEY LEGALLY!!!!!!!!!!!!!!!!!! | will_strip_4_banannas_boys@yahoo.com | DVD Video | 0 | 02-02-2006 07:03 PM |
| MAKE FAST MONEY LEGALLY!!!!!!!!!!!!!!!!!! | will_strip_4_banannas_boys@yahoo.com | DVD Video | 0 | 02-02-2006 06:04 PM |
| As growth slows, Hollywood faces a DVD standoff. | Allan | DVD Video | 0 | 07-11-2005 02:10 PM |
| High Definition and the future of viewing. | Allan | DVD Video | 3 | 03-09-2005 12:56 AM |