1. Home >
  2. Apps >
  3. Groups >

Function in vb

Question asked by nishcom in #Coffee Room on Jun 26, 2008
nishcom
nishcom · Jun 26, 2008
Rank E1 - BEGINNER
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. Posted in: #Coffee Room
komputergeek
komputergeek · Nov 17, 2008
Rank C2 - EXPERT
use this :
Asc ( Mid ( String_name,Position ) )

sorry for late reply 😉
Anil Jain
Anil Jain · Nov 17, 2008
Rank A2 - PRO
komputergeek
use this :
Asc ( Mid ( String_name,Position ) )

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

-Crazy
komputergeek
komputergeek · Nov 17, 2008
Rank C2 - EXPERT
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

You must log-in or sign-up to reply to this post.

Click to Log-In or Sign-Up