Android Question About putsimple of keyValueStore

Discussion in 'Android Questions' started by grifoDev, Feb 18, 2015.

  1. grifoDev

    grifoDev Member Licensed User

    Hello
    dim s as string
    s = "000989"
    myKey.PutSimple("001",s) ====> 989
    and not 000989

    can you help me..?
    Thank
     
  2. Peter Simpson

    Peter Simpson Expert Licensed User

    Does 's' have to be String, why not an Integer?
    Change from String to Int.

    Enjoy...
     
  3. grifoDev

    grifoDev Member Licensed User

    I must write the phone number that can begin with "0"
    :-(
     
  4. eurojam

    eurojam Well-Known Member Licensed User

    you have to handle your string as an object:
    Code:
    Dim s As Object
    s = 
    "000989"
    mykey.PutObject(
    "001", s)

    Log(mykey.GetObject("001"))
     
    Erel and grifoDev like this.
  5. grifoDev

    grifoDev Member Licensed User

    thank you :)
     
  6. eurojam

    eurojam Well-Known Member Licensed User

    if it was helpful, then you can give it a *LIKE*;)
     
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