Function in vb

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-Yf5hJ4 • Nov 16, 2008

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

    sorry for late reply ๐Ÿ˜‰

  • 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-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