×

Discussion Board

Results 1 to 2 of 2

Thread: simple input?

  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    1

    simple input?

    Hi,

    im looking for a way to get a simple input of 2 int numbers. what are some easy commands to read the pressed keys? everything i found is with textfield... but i just want to save 2 pressed keys in a int item... isnt there an easier way?

    like in java with scanner?

    thanks for your help

  2. #2
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: simple input?

    if you use a Canvas, you can override keyPressed which gives you the code of the key that is pressed. (note that usually this is the ascii value of the key, which mean, on a standard phone keyboard, that the int value will be : key - '0'.)

Similar Threads

  1. Replies: 7
    Last Post: 2009-06-12, 09:14
  2. Simple text input field
    By erst in forum Symbian
    Replies: 15
    Last Post: 2007-04-03, 06:11
  3. Replies: 2
    Last Post: 2006-01-31, 11:46
  4. pls help! sample code for a simple dialog with text input for 9210
    By edmundkkchan in forum Symbian User Interface
    Replies: 1
    Last Post: 2002-06-21, 17:23

Posting Permissions

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