CrazyEngineers
  • Function in vb

    nishcom

    Member

    Updated: Oct 26, 2024
    Views: 1.1K
    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.
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • komputergeek

    MemberNov 16, 2008

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

    sorry for late reply 😉
    Are you sure? This action cannot be undone.
    Cancel
  • Anil Jain

    MemberNov 16, 2008

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

    sorry for late reply 😉
    Probably an example of this would help us in depth.

    -Crazy
    Are you sure? This action cannot be undone.
    Cancel
  • komputergeek

    MemberNov 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
    
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register