×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    17

    S40 Textfield.Number limited 10 digits

    Hi,

    i've a midlet with a TextField type TextField.NUMERIC,but in S40 if i setString long more the 10 digits a keep java.lang.IllegalArgumentException

    If i initializing with "little" number and in editing a put 15 digits, all is ok
    mainForm.append(new TextField("Number", "123456789", 15, TextField.NUMERIC));
    add 012345 when i get getString return all 15 digits.

    But if i setString go to IllegalArgumentException
    TextField textField = new TextField("Number", "", 15, TextField.NUMERIC);
    textField.setString("123456789012345");

    In S60 run correctly.
    Thanks Roberto

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: S40 Textfield.Number limited 10 digits

    Hello Roberto,

    which S40 Edition is this issue about? 2nd Edition, 3rd Edition, 3rd Ed., Feature Pack 1, 5th Edition or 5th Ed., Feature Pack 1?

    In addition, please check this Known Issue in Forum Nokia Wiki for commenting:

    http://wiki.forum.nokia.com/index.ph...ECIMAL_is_used

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    17

    Re: S40 Textfield.Number limited 10 digits

    In real 6234 (Series 40 3rd Edition, Feature Pack 1) and in emulator (S40_5th_Edition_SDK_Feature_Pack_1) i reproduced the error.

    Thanks for link, but this confirm in S40 there is a limits for NUMBER and DECIMAL, that i don't found in documentation.

    The strange is that in editing accept the digits specified in length parameter, only when you set you keep and Exception.

    TextField textField = new TextField("Number", "", 15, TextField.NUMERIC);
    textField.setString("123456789012345");
    OR
    TextField textField = new TextField("Number", "123456789012345", 15, TextField.NUMERIC);

    Thanks for you help.

    Roberto

  4. #4
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: S40 Textfield.Number limited 10 digits

    In addition to TextField.NUMERIC, could you possibly have a chance to test these with your device & emulator?:

    -TextField.DECIMAL
    -TextField.ANY

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    17

    Re: S40 Textfield.Number limited 10 digits

    Yes i can use TextField.ANY (DECIMAL have similar limit of NUMERIC), but i left input assistant to control user digit only number.

    Ok if there'snt any other solution i check input afther input.

    Bye and Thanks Roberto

Similar Threads

  1. S40 - S60 Calling sequence diff
    By prakash.raman in forum Mobile Java General
    Replies: 1
    Last Post: 2008-07-23, 11:07
  2. Problem with S40 5th Edition emulation, NCF 1.2 and BT dongle
    By nevillesatz in forum Bluetooth Technology
    Replies: 1
    Last Post: 2007-07-05, 10:52
  3. S40 MIDI HELP!
    By 21n9 in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2006-10-15, 21:53
  4. Bluetooth Connectivity with S40 DP 2.0 SDK 1.1
    By carlostoro in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-07, 23:01
  5. Nokia手机主要参数列表
    By cqucyf in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 0
    Last Post: 2005-05-04, 16:34

Posting Permissions

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