DimMeAsNewbie
Technical User
Does the code below make any sense? I am trying to have a programme that compares the key pressed by user and a character in a word
(The words are stored in a txt.file and i can connect to the file and read through the words.)
Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
input = ChrW(Val(e.KeyChar))
For i = 0 To l - 1
If input = word(i) Then
ostr(i * 2) = word(i)
found = 1
End If
(The words are stored in a txt.file and i can connect to the file and read through the words.)
Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
input = ChrW(Val(e.KeyChar))
For i = 0 To l - 1
If input = word(i) Then
ostr(i * 2) = word(i)
found = 1
End If