Hello I am Jay I have a problem with my vb6 project. This is my assignment
all I have to do is to type in a string of characters in one textbox. That
string of characters should appear backwards, and in numbers text form.
Eaxmple if I type in "abc" it should appear "cba" and with numbers"123" it
should appear text one, two, three. The program works, but when I type in my
string of characters instead of my program accessing one character like "a"
in reads the whole string"abc". All I need to do is read one character, not
the entire string, do anyone have an idea or suggestion I would gladly like
to here your suggestion.
Here is my code:
Private Sub textname11_Change()
textname12.Text = textname11.Text
Dim base As String, position As Integer
'to count the letter
'Dim strname1 As String
'strname1 is the variable for the number
Dim strname2 As String
'strname2 is the variable fot the letter
'strname1 = textname12.Text
' base = textname12.Text
'textname12.Text = ""
' For position = Len(base) To 1 Step -1
' textname12.Text = textname12.Text & _
' Mid$(base, position, 1)
' Next
intnum1 = textname12.Text
Select Case textname12.Text
Case "0"
textname12.Text = "zero "
Case "1"
textname12.Text = "one "
Case "2"
textname12.Text = "two "
Case "3"
textname12.Text = "three "
Case "4"
textname12.Text = "four "
Case "5"
textname12.Text = "five "
Case "6"
textname12.Text = "six "
Case "7"
textname12.Text = "seven "
Case "8"
textname12.Text = "eight "
Case "9"
textname12.Text = "nine "
Case Else
textname12.Text = strname1
End Select
strname2 = strname1
End Sub
Jay
Archived from group: microsoft>public>vb>syntax