Add a number to a textfield

Discussion in 'Jiggy Runtime Development' started by The Ax, Jun 3, 2008.

  1. The Ax

    The Ax Banned

    Joined:
    Mar 11, 2008
    Messages:
    647
    Likes Received:
    22
    I want to make it so when i press the image "1" have the textfield = ("1") and then when I press "5"the text field = ("15")


    possible?
  2. jakecigar

    jakecigar New Member

    Joined:
    Mar 7, 2008
    Messages:
    83
    Likes Received:
    6
    Device:
    iPhone 4 (Black)
    you can't simply do a i+=5, unless you know that i is a number (not a string , which it is!!!)

    i = parseInt(i) + 5 // should do the job
    or
    textfield.text = parseInt(textfield.text) + 5
  3. The Ax

    The Ax Banned

    Joined:
    Mar 11, 2008
    Messages:
    647
    Likes Received:
    22
    NVM, i got it but thanks
  4. jamil_d

    jamil_d Active Member

    Joined:
    Dec 15, 2007
    Messages:
    2,041
    Likes Received:
    12
    Device:
    iPhone 3GS (Black)
    Just curious, what are you working on?
  5. The Ax

    The Ax Banned

    Joined:
    Mar 11, 2008
    Messages:
    647
    Likes Received:
    22
    since the dev team dropped thier app Lock i decided to make my own

Share This Page