IT Community - Software Programming, Web Development and Technical Support

Numeric Textfield Problem

This is a discussion on Numeric Textfield Problem within the Mobile Software Development forums, part of the Software Development category; Hi there, could someone tell me why TextField's get a 10 number max length automatically when it's assigned ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Mobile Software Development

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 09-25-2007, 04:10 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
amansundar is on a distinguished road
Default Numeric Textfield Problem

Hi there,

could someone tell me why TextField's get a 10 number max length automatically when it's assigned a NUMERIC type to it? Even if I set it's max length to more then 10.

I know it doesn't happen in every cellphone model but I've already noticed it in Sony Ericsson W810. Is this an specification? What can I do to increase max length and keep with NUMERIC type textfield?

thanks to your attention.
__________________
cheers
Aman

Last edited by amansundar : 10-10-2007 at 02:31 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-25-2007, 04:23 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Default Re: Numeric Textfield Problem

I don't see how they can limit it to 10 characters. Most mobile phone numbers are longer (mine is 11, without international dialling).

Surely they would account for that?
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-25-2007, 04:24 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
amansundar is on a distinguished road
Default Re: Numeric Textfield Problem

What do you mean with "without international dialling"?
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-25-2007, 04:25 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Default Re: Numeric Textfield Problem

uk mobile numbers start 07, but from outside uk it's +447 - one extra digit.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-25-2007, 04:27 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
amansundar is on a distinguished road
Default Re: Numeric Textfield Problem

Quote:
uk mobile numbers start 07, but from outside uk it's +447 - one extra digit.

Sorry friend, but I think you didn't understand... I'm talking about a TextField component inside a Form.
When you build a TextField like this:
Code:
new TextField("Example", "123", 20, TextField.NUMERIC);
the implementation should only accept numbers in the textField, and in most cases it does. But the third parameter in the constructor is the max length of the field and in some cellphones like I said above it just accept 10 numbers and nothing more. Even if I tell him to have a bigger max length.

I'm not trying to write a telephone number in this field, but an ID of my country, that has 11 to 14 numbers.

got it??
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 09-25-2007, 04:29 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Default Re: Numeric Textfield Problem

Yes, but my point is that it doesn't make sense that a mobile phone company would limit it to 10 characters when you consider that mobile phone numbers are more characters.

Ahh, never, mind. I don't know the solution, anyway.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-17-2007, 11:14 PM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
amansundar is on a distinguished road
Default Re: Numeric Textfield Problem

Even palm os subjected to this problem...i feel its better to workaround manually to create Textfield in canvas..which gives a best result in term of look and feel...
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 10-27-2007, 03:05 AM
sathishkumar sathishkumar is offline
D-Web Trainee
 
Join Date: Jul 2007
Posts: 2
sathishkumar is on a distinguished road
Default Re: Numeric Textfield Problem

hi,
this is really a big issue...device manufactures should definitely make note on this.....
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 09-29-2008, 07:01 AM
levelup levelup is offline
D-Web Trainee
 
Join Date: Sep 2008
Posts: 18
levelup is on a distinguished road
Default Re: Numeric Textfield Problem

is really useful for me, I am glad to read it here.
__________________
business card printing
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in IE krishnakumar HTML, CSS and Javascript Coding Techniques 13 11-28-2007 09:51 PM
Problem in Numeric value in Windows Server 2003 S.Vinothkumar Database Support 4 10-03-2007 03:23 AM
Problem in Rotating TextField seesamjagan Flash Actionscript Programming 1 08-29-2007 04:03 AM
Mask For TextField seesamjagan Flash Actionscript Programming 2 08-09-2007 10:49 PM
numeric variable can hold vigneshgets C and C++ Programming 0 05-18-2007 04:24 AM


All times are GMT -7. The time now is 09:53 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0