Hi, anyone knows how to show automatly in a text box a number with the '.' every 3 digits?. For example, the number 12000000 shown as 12.000.000
Thanks.
Printable View
Hi, anyone knows how to show automatly in a text box a number with the '.' every 3 digits?. For example, the number 12000000 shown as 12.000.000
Thanks.
You could set your computor to the macedonian language and then format the textbox string to currency :bigyello: (It works!!!)Quote:
Originally Posted by nacho2
:lol: :lol: :lol: :lol:
Ok, any other idea?
You will simply have to write code to add the "." It will, of course have to be a string and you won't even be able to get the value of it without using code to interpret it. That code would not be difficult but why do you want to do this if it is not for an unusual currency format?
Have you just gone dotty? :bigyello:
Well actually, I don't care if it is a dot or a comma or whatever. I'm working with big numbers (always have around six zeros) and having something separating the number in groups of three would help a lot in reading it.
And yeap I need it to be a number because I need to operate with it.
Hey, thanks for your help.
If you are prepared to use the normal "," to separate 1000's and the "." to separate the decimals, then that is a normal VB.NET format function.
e.g.
myString = FormatNumber(myNumber, 2, , ,TriState.True)
See MSDN Help - Formatting Numbers
Something like:
VB Code:
TextBox1.Text = Format(Long.Parse(TextBox1.Text), "#,###0.00")
AAAAAAAARGGGHHHHHH :mad: :mad: :mad: :mad:
Store the number in a numeric variable but display it as a string, using either my or Mendhak's approach.
Ok, that's great thank you lots.
Hey, by the way, could you help me with my dataset question? It is posted in a thread titled "Trying again!!". I'm browsing the web looking for an answer but I'm getting no answer.
Thanks for your help guys.
Sorry. Not my forte. I thought XML was the deluxe version of my favourite Citroen car :DQuote:
Originally Posted by nacho2
Ok thank you lots anyway.