nishcom
nishcom
Branch Unspecified
26 Jun 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

Branch Unspecified
17 Nov 2008
use this :
Asc ( Mid ( String_name,Position ) )

sorry for late reply 😉
17 Nov 2008
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

Branch Unspecified
17 Nov 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 -

Only logged in users can reply.