Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User iparrot's Avatar
    Join Date
    Feb 2009
    Posts
    39
    Hello all, i am trying to implement a TextField where users will have to input values in a certain format with numbers and alphabets, examples are like "NE40.0" or "35SW", "45NW24" etc. How can i validate that the user has put in the correct format. I know its possible to use an ItemStateListener but i am stuck with which comparing method to use or how to compare the strings.

    Please any other ideas?

    Thank you.

  2. #2
    Registered User bhanuchandar.k's Avatar
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868
    Hi iparrot ,
    The simpler way is when ever the user submits the form before that take the input field value and check the and alert the user if it is wrong format.

  3. #3
    Registered User ZeinaShehab's Avatar
    Join Date
    Aug 2010
    Posts
    23
    if you know what must be entered, what about using a choice group (combo box)?

Similar Threads

  1. Adding contact field values
    By siva_321 in forum Symbian C++
    Replies: 2
    Last Post: 2009-10-22, 13:48
  2. Simple text input field
    By erst in forum Symbian C++
    Replies: 15
    Last Post: 2007-04-03, 06:11
  3. Replies: 1
    Last Post: 2006-03-29, 11:23
  4. Replies: 2
    Last Post: 2006-01-31, 11:46
  5. Input in text field without new window
    By raffaelesergi in forum Mobile Java General
    Replies: 3
    Last Post: 2003-10-28, 10:58

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