Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor rsf's Avatar
    Join Date
    Jun 2007
    Posts
    54
    I use the 'FLOAT' type on 2nd edition. It work perfectly after i convert it to string, and use the TUPLE function.

    After I port my PY to 3rd edition, i cannot enter NUMBER longer that 10 digits.
    Same code is running.

    My question is:
    What is the proper implementation of DIALOG where user can input 11 digits mobile number?

    Calling all PY veterans there. please help.

  2. #2
    Regular Contributor rsf's Avatar
    Join Date
    Jun 2007
    Posts
    54
    follow up....


    Also, my 2nd edition behave like my 3rd edition once I try to input number on a dialog box.

    code:

    cp= appuifw.query(u"Type your friend mobile number", "float")


    using:
    PythonForS60_1_3_22_2ndEd.SIS, I can input more than 10 numbers

    using:
    PythonForS60_1_4_1_2ndEd.SIS, up to 10 number only.


    What happen to this? What should I need to use to inpute 11 number for mobile number?

  3. #3
    Regular Contributor janekw_'s Avatar
    Join Date
    Apr 2007
    Location
    Lublin, Poland
    Posts
    81
    I use 'text'... Why 'float', BTW? Why not 'number'?
    whatever happens happens

  4. #4
    Regular Contributor rsf's Avatar
    Join Date
    Jun 2007
    Posts
    54
    using TEXT use ALPHANUMERIC, using NUMBER limit to 10 numbers.

    I wanted to input, NUMBERS from the dialog box which is 11digits long.

    Please help.

  5. #5
    Regular Contributor janekw_'s Avatar
    Join Date
    Apr 2007
    Location
    Lublin, Poland
    Posts
    81
    I didn't check the pys60 sources so I don't know for sure, but if there's a limit for the 'number', well, there's not much you can do without modyfing them.
    Still I don't think it's a good idea to use 'number' or 'float' queries for a phone number. What about numbers starting with '+' or '00'? You'll loose information in the numeric variable.
    Then again you can click a function key on the phone and limit the input only to numbers even in the 'text' field. But I admit it's a workaround.
    I'm going to write pys60 phone number input control, but it'll take some time.
    whatever happens happens

  6. #6
    Regular Contributor rsf's Avatar
    Join Date
    Jun 2007
    Posts
    54
    it works ok when using FLOAT type to get INPUT mobilenumber from user. This was since september under 1.32 pys60 version.

    But after i switched to 1.41, FLOAT limits up to 10digits only. I need to make it long.

    I cant use TEXT type since the user need to press the switch keys to make input numeric. What I want is to be able my user to automatically type in the number withou hassle.

    I hope somebody can help.

  7. #7
    Regular Contributor nlsp's Avatar
    Join Date
    Oct 2007
    Posts
    67
    Some wizard will need to implement you a phonenumber editor. Until somebody volunteers, your users will have to switch from textmode to numbermode. Use "text".

  8. #8
    Regular Contributor rsf's Avatar
    Join Date
    Jun 2007
    Posts
    54
    Thanks!

    ANY idea what is the reason why FLOAT type (particullarly lenght) from PYS60 1.32 is changed on PYS60 1.41?

  9. #9
    Regular Contributor nlsp's Avatar
    Join Date
    Oct 2007
    Posts
    67
    Floating point numbers have limited precision. Letting the user input more digits than the implementation can reproduce makes no sense. I guess.

  10. #10
    Regular Contributor rsf's Avatar
    Join Date
    Jun 2007
    Posts
    54
    thanks NSLP!


    Just wondering why in ver 1.41 eliminated float lenght. Unlike in 1.32 which offer longer lenght.

    thanks guys!

Similar Threads

  1. [announce] wait dialog wrapper 0.2
    By lfd in forum Python
    Replies: 10
    Last Post: 2008-03-21, 11:03
  2. selection listbox in multipage dialog
    By RearCog in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-02-26, 21:41
  3. Wait dialog vs. Global note - problems...
    By bjorn.rudolfsson in forum Symbian User Interface
    Replies: 4
    Last Post: 2003-10-30, 10:48
  4. Launch dialog from another dialog
    By bjorn.rudolfsson in forum Symbian User Interface
    Replies: 2
    Last Post: 2003-06-27, 09:36
  5. Wait dialog vs. Global note - problems...
    By bjorn.rudolfsson in forum Symbian C++
    Replies: 0
    Last Post: 2003-06-25, 15:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved