I'm trying to make an english to pig latin program
and it doesn't seem to show my output in my answer.text box
[CODE=vbnet]Dim strInput, str1stCharacter , strOutput, stranswer As String, intStringLength As Integer
strInput = txtinput.Text
str1stCharacter = Microsoft.Visua lBasic.Left(str Input, 1)
If str1stCharacter = "A" Or str1stCharacter = "E" Or str1stCharacter = "I" Or str1stCharacter = "O" Or str1stCharacter = "U" Then
strOutput = strInput & "WAY"
Else
intStringLength = Len(strInput) - 1
strOutput = Microsoft.Visua lBasic.Right(st rInput, intStringLength ) & str1stCharacter & "WAY"
strOutput = stranswer
txtoutput.Text = stranswer[/CODE]
anyone clue why?
and it doesn't seem to show my output in my answer.text box
[CODE=vbnet]Dim strInput, str1stCharacter , strOutput, stranswer As String, intStringLength As Integer
strInput = txtinput.Text
str1stCharacter = Microsoft.Visua lBasic.Left(str Input, 1)
If str1stCharacter = "A" Or str1stCharacter = "E" Or str1stCharacter = "I" Or str1stCharacter = "O" Or str1stCharacter = "U" Then
strOutput = strInput & "WAY"
Else
intStringLength = Len(strInput) - 1
strOutput = Microsoft.Visua lBasic.Right(st rInput, intStringLength ) & str1stCharacter & "WAY"
strOutput = stranswer
txtoutput.Text = stranswer[/CODE]
anyone clue why?
Comment