Function in vb

Discussion in 'Computer Science | IT | Networking' started by nishcom, Jun 26, 2008.

    nishcom Certified CEan

    Message Count:
    8
    Ratings Received:
    +0
    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.

    komputergeek Certified CEan

    Message Count:
    258
    Ratings Received:
    +0
    Engineering Discipline:
    IT
    use this :
    Asc ( Mid ( String_name,Position ) )

    sorry for late reply ;)

    crazyboy Ace

    Message Count:
    3,903
    Ratings Received:
    +151
    Engineering Discipline:
    Structural
    Probably an example of this would help us in depth.

    -Crazy :cean:

    komputergeek Certified CEan

    Message Count:
    258
    Ratings Received:
    +0
    Engineering Discipline:
    IT
    Code:
    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
    

Share This Page