Howdy All,
I'm looking for a good way to detect if the user has entered more than one decimal point into a TextBox. I'm trying to prevent a error due to multiple decimal points.
This seems like it should be easy and there's probably a bunch of ways to do this, but I've been looking and can't seem to find even one.
I was thinking of trying to get the decimal point (.) count in a string.
Can anyone help?
Thanks
Tobin Sparks
I'm looking for a good way to detect if the user has entered more than one decimal point into a TextBox. I'm trying to prevent a error due to multiple decimal points.
This seems like it should be easy and there's probably a bunch of ways to do this, but I've been looking and can't seem to find even one.
I was thinking of trying to get the decimal point (.) count in a string.
Can anyone help?
Thanks
Tobin Sparks