B4R Question String to Number

Discussion in 'B4R Questions' started by Arya8867, Oct 29, 2019.

  1. Arya8867

    Arya8867 Member

    how we can convert a string to number in B4R?
    for example i want to convert the string "" to array of byte?
    or convert "14235" to UINT?
    Last edited: Oct 29, 2019
  2. Erel

    Erel Administrator Staff Member Licensed User

    You have posted this question in B4R forum. Are you asking about B4A or B4R?
  3. Arya8867

    Arya8867 Member

    Sorry, my mistake
    i ask about B4R
    i found this way:
    Dim port As UInt = BC.StringFromBytes("12345")
    Dim IP(4As Byte
    Dim i As Byte = 0
    For Each t() As Byte In BC.Split("",".")
    'IP(i) = BC.g
            i = i+
    Erel likes this.
  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