> Newbie learning VB.Net.
>
[quoted text clipped - 7 lines]
>
> AmountTB.Text = AmountMoney.ToString
Reading between the lines of your question, and in addition to Martin's
answer, it looks like you are getting a field from a database, which has
been declared as "money", and you want to display it as a currency.
Firstly, a lot of people don't use the "money" datatype, and instead use
something along the lines of "decimal (12, 2)", as they find it easier
to work with - google about why the money datatype is evil will get lots
of argument (for and against!!)
Secondly, you can actually format a number as a currency. Using Martin's
example:
decimal d = (decimal)123.9900;
Console.WriteLine(d.ToString("c"));
As I say, I'm reading between the lines, so apologies if this is not
relevant!
HTH,
Rowland.
> Hi,
>
[quoted text clipped - 17 lines]
>>
>> AmountTB.Text = AmountMoney.ToString