Having trouble with Mask and text field with decimal numbers


Author
Message
Ben Hayat
Ben Hayat
Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
I have field that the user needs to enter State tax. i.e. 7.0 or 7.2 or 10.1



At first I had created the field in DDT as decimal with precision of 2.

Then when I binded that field to a textbox, it would not even work properly or accept the "." prperly

I tried with Mask TextBox and could not enter 07.12



Then I changed the DDT to SmallMoney, rebuilt the database and rebuilt my BO.

Tried it again, and I can't get to accept decimal numbers in either text box.



Question:

a) is it the field type I'm using in DDT, is wrong?

b) Or what should I set on the mask to get it to work?



Thanks!

..ßen
Reply
Ben Hayat
Ben Hayat
Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
Ben, before answering your questions, are you the questions related to TextBox or MaskedTextBox?

Each one behaves differently when the are binded to BO. If I remove the binding, the controls work fine.



There seem to be a problem, when I hit the decimal point "."

After that it acts weird.



Ben, I'm not trying not to follow/answer your questions, but I think you'll get a better experience and feedback if you try it yourself with a simple decimal field. It's very hard to describe and give you definite answers, depending on which textbox and when you enter the decimal point.



Try it and if you still can't see it, I then will start...



Thank you Sir!

..ßen
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Ben Hayat - 18 Years Ago
     ^Pump^
Ben Hayat - 18 Years Ago
StrataFrame Team - 18 Years Ago
Ben Hayat - 18 Years Ago
Ben Hayat - 18 Years Ago
                     These are your possible values for the formatting:...
StrataFrame Team - 18 Years Ago
                         [quote][b]Ben Chase (06/06/2007)[/b][hr]These are your possible values...
Ben Hayat - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search