formatting textbox using currency

Pearl

New member
Joined
Jun 12, 2012
Messages
3
Programming Experience
Beginner
Trying to format a textbox using currency
Here is my code
Dim cost, amtdue As Decimal
Dim quantity As Integer

costTextBox.Text = FormatCurrency(costTextBox.Text)
cost = costTextBox.Text
quantity = quantityTextBox.Text
amtdue = cost * quantity

amtdueTextBox.Text = FormatCurrency(amtdue)

I am getting the correct answer when I type in an amount for cost and an amount for the quantity, but the answer is
showing for example as J$400.00 instead of just $400.00

Why am I getting the J infront of the $
 
Back
Top