Android Question %x values

Discussion in 'Android Questions' started by tufanv, Apr 3, 2015.

  1. tufanv

    tufanv Expert Licensed User

    Hello

    I want to create random %x values each time but i am failing

    i am using
    dim p(9) as int
    for i=1 to 8
    p(i) = rnd(i*30,(i*30+30))
    next

    so i get some p values for example : p(1) = 37
    p(2) = 71
    p(3) = 103

    now i want to place my text1.text at these values %x for example
    with first click i want text1.left = 37%x
    wih second click i wantr text2.left = 71%x
    ...

    But i cant use p values with %x

    What can i do for this

    ty
     
  2. mangojack

    mangojack Well-Known Member Licensed User

    Code:
    text1.Left = PerXToCurrent(p(2))
     
    Last edited: Apr 3, 2015
  3. tufanv

    tufanv Expert Licensed User

    ty !
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice