Android Question How to parse String to Integer?

Discussion in 'Android Questions' started by Martin006, Feb 23, 2016.

  1. Martin006

    Martin006 New Member

    Is there anyway to parse string int to integer? like vb syntax?

    Thank u for answering :)
  2. Erel

    Erel Administrator Staff Member Licensed User

    It happens automatically:
    Dim i As Int = "23"
  3. victormedranop

    victormedranop Active Member Licensed User

    If you try to sum from extract a list
    get error

  4. DonManfred

    DonManfred Expert Licensed User

    You should create a new thread for your problem posting the relevant code and the complete error message! Or better: Upload a small project which shows the problem! FOR SURE in the new thread....
  5. victormedranop

    victormedranop Active Member Licensed User

    I used this function, maybe is not the more elegant way to do it. But works like a charm for me.

    Sub Parse_int(s As StringAs Int
    Dim amount As Int
     amount = s.Replace(
    Return amount
    End Sub