DimMeAsNewbie
Technical User
Hey Guys!
It's me again, thanks for you help to my previous error, unfortunately i've a new devil as in the error above, i surely must be cursed
Can anyone help identify what's causing the above error, error is yellow highlighted at line " If word(i) = input Then" of the code?
Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
input = e.KeyChar
For i = 0 To l - 1
If word(i) = input Then ERROR IS HIGHLIGHTED HERE
ostr(i * 2) = word(i)
ostr.Replace(ostr(i * 2), word(i))
found = 1
End If
Next
Label4.Text = input
If found = 0 Then
End If
End Sub
It's me again, thanks for you help to my previous error, unfortunately i've a new devil as in the error above, i surely must be cursed
Can anyone help identify what's causing the above error, error is yellow highlighted at line " If word(i) = input Then" of the code?
Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
input = e.KeyChar
For i = 0 To l - 1
If word(i) = input Then ERROR IS HIGHLIGHTED HERE
ostr(i * 2) = word(i)
ostr.Replace(ostr(i * 2), word(i))
found = 1
End If
Next
Label4.Text = input
If found = 0 Then
End If
End Sub