Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2010

    TextField and int

    I created an instance of a textField class with name "mark".
    The user have to enter the mark at that textfield.
    Although I choose the constraint as TextField.DECIMAL, i can take that value just with getString() method.
    How to change that value to integer.

    What I am trying to do is to compare the marks.
    How can I compare if they are strings type although they are marks?

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2005

    Re: TextField and int

    Integer.valueOf(String string)
    Integer.parseInt(String string)

Similar Threads

  1. Int и signed Int обмен данными между ними
    By Clever brain in forum Russian Developer Forum - Форум Российских разработчиков
    Replies: 2
    Last Post: 2009-05-11, 21:35
  2. Replies: 1
    Last Post: 2008-08-28, 21:25
  3. createImage(byte[],int,int) bug on Nokia 7650
    By bachin in forum Mobile Java General
    Replies: 3
    Last Post: 2005-09-16, 03:49
  4. QD上createImage(int x,int y)的内存占用问题
    By imshark_jinni in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 0
    Last Post: 2005-09-02, 03:59
  5. 请教createImage(byte[] imageData, int imageOffset, int imageLength) 的问题
    By RongJia in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 5
    Last Post: 2005-03-27, 17:18

Posting Permissions

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