You Are Here:

Community: Developer Discussion Boards

#1 Old Entering Decimal Numbers and Constraints - 2003-11-07, 09:23

Join Date: Nov 2003
Posts: 3
bs18
Offline
Registered User
In MIDP 1.0 how can I restrict a TextBox to accept numbers with decimals in them?

If I specify TextField.NUMERIC as the constraint then the user can only enter in numbers, i.e. I can't get the TextBox to recognize a decimal point.

I'm thinking that I should use TextField.CONSTRAINT_MASK and the setConstraints() method but I can't figure out the format of the input field for the mask.
Reply With Quote

#2 Old 2003-11-07, 15:22

Join Date: Mar 2003
Posts: 27
stevecotton
Offline
Registered User
MIDP 2.0 has added TextField.DECIMAL, so I assume that it can't be done with the MIDP 1.0 options.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia