I do not find the getchar function in my VB for applications?.
How do I install it?, or what do I need to activate it?
Thank in advance!!!!
Yorch.
Printable View
I do not find the getchar function in my VB for applications?.
How do I install it?, or what do I need to activate it?
Thank in advance!!!!
Yorch.
i think that is a c function, try Chr function in vb, i may have misinterpereted want you want to return, but that looks right
? chr(97)
a
Thanks, actually I want to get a character from a string. I found this in the msdn:
The GetChar function does not work in my version. Do I need to activate something else?.Code:Visual Basic
Dim TestString As String = "ABCDE"
Dim TestChar As Char
TestChar = GetChar(TestString, 4)
' Returns "D"
vb Code:
Dim teststr As String, testchr As String teststr = "ABCDE" testchar = Mid(teststr, 4, 1) 'returns D