Function in vb

nishcom

nishcom

@nishcom-cRSnZs • Oct 26, 2024

Hiiii everybody.
i wanna know is there any function in vb which can tell me the ascii values of the subscript(element) of an array....... or can we write a function for this. if possible please help.........
thanx in advance.

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • komputergeek

    komputergeek

    @komputergeek-Yf5hJ4 Nov 16, 2008

    use this :
    Asc ( Mid ( String_name,Position ) )

    sorry for late reply 😉

  • Anil Jain

    Anil Jain

    @CrazyBoy Nov 16, 2008

    komputergeekuse this :
    Asc ( Mid ( String_name,Position ) )

    sorry for late reply 😉

    Probably an example of this would help us in depth.

    -Crazy

  • komputergeek

    komputergeek

    @komputergeek-Yf5hJ4 Nov 16, 2008

    Private Sub Form_Load()
    Dim str1 As String
    str1 = "Some Text"
    Text1.Text = Asc(Mid(str1, 3))   'Display ascii value of 3rd character i.e 'm' in textbox
    End Sub