View Feed
group-icon
Coffee Room
Discuss anything here - everything that you wish to discuss with fellow engineers.
12915 Members
Join this group to post and comment.
nishcom
nishcom • Jun 26, 2008

Function in vb

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
komputergeek • Nov 17, 2008
use this :
Asc ( Mid ( String_name,Position ) )

sorry for late reply 😉
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
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 content on your social channels -