Справочник Жаркова по проектированию и программированию искусственного интеллекта. Том 5: Программирование искусственного интеллекта на Visual Basic (продолжение 1)
Шрифт:
str(17) = Mid(Word_in.Text, nums – 17, 1)
str(18) = Mid(Word_in.Text, nums – 18, 1)
str(19) = Mid(Word_in.Text, nums – 19, 1)
Catch ex As Exception
End Try
If Word_in.TextLength = 1 Then
If str(0) = "f" Then
Chr1.Text = "F"
End If
ElseIf Word_in.TextLength = 2 Then
If str(1) = "f" Then
Chr1.Text = "F"
End If
If str(0) = "f" Then
Chr2.Text = "F"
End If
ElseIf Word_in.TextLength = 3 Then
If str(0) = "f" Then
Chr3.Text = "F"
End If
If str(1) = "f" Then
Chr2.Text = "F"
End If
If str(2) = "f" Then
Chr1.Text = "F"
End If
ElseIf Word_in.TextLength = 4 Then
If str(0) = "f" Then
Chr4.Text = "F"
End If
If str(1) = "f" Then
Chr3.Text = "F"
End If
If str(2) = "f" Then
Chr2.Text = "F"
End If
If str(3) = "f" Then
Chr1.Text = "F"
End If
ElseIf Word_in.TextLength = 5 Then
If str(0) = "f" Then
Chr5.Text = "F"
End If
If str(1) = "f" Then
Chr4.Text = "F"
End If
If str(2) = "f" Then
Chr3.Text = "F"
End If
If str(3) = "f" Then
Chr2.Text = "F"
End If
If str(4) = "f" Then
Chr1.Text = "F"
End If
ElseIf Word_in.TextLength = 6 Then
If str(0) = "f" Then
Chr6.Text = "F"
End If
If str(1) = "f" Then
Chr5.Text = "F"
End If
If str(2) = "f" Then
Chr4.Text = "F"
End If
If str(3) = "f" Then
Chr3.Text = "F"
End If
If str(4) = "f" Then
Chr2.Text = "F"
End If
If str(5) = "f" Then
Chr1.Text = "F"
End If
ElseIf Word_in.TextLength = 7 Then
If str(0) = "f" Then
Chr7.Text = "F"
End If
If str(1) = "f" Then
Chr6.Text = "F"
End If
If str(2) = "f" Then
Chr5.Text = "F"
End If
If str(3) = "f" Then
Chr4.Text = "F"
End If
If str(4) = "f" Then
Chr3.Text = "F"
End If
If str(5) = "f" Then
Chr2.Text = "F"
End If
If str(6) = "f" Then
Chr1.Text = "F"
End If
ElseIf Word_in.TextLength = 8 Then
If str(0) = "f" Then
Chr8.Text = "F"
End If
If str(1) = "f" Then
Chr7.Text = "F"
End If
If str(2) = "f" Then
Chr6.Text = "F"
End If
If str(3) = "f" Then
Chr5.Text = "F"
End If
If str(4) = "f" Then
Chr4.Text = "F"
End If
If str(5) = "f" Then
Chr3.Text = "F"
End If
If str(6) = "f" Then
Chr2.Text = "F"
End If
If str(7) = "f" Then
Chr1.Text = "F"
End If
ElseIf Word_in.TextLength = 9 Then
If str(0) = "f" Then
Chr9.Text = "F"
End If
If str(1) = "f" Then
Chr8.Text = "F"
End If
If str(2) = "f" Then
Chr7.Text = "F"
End If
If str(3) = "f" Then
Chr6.Text = "F"
End If
If str(4) = "f" Then
Chr5.Text = "F"
End If
If str(5) = "f" Then
Chr4.Text = "F"
End If
If str(6) = "f" Then
Chr3.Text = "F"
End If
If str(7) = "f" Then
Chr2.Text = "F"
End If
If str(8) = "f" Then
Chr1.Text = "F"
End If
ElseIf Word_in.TextLength = 10 Then
If str(0) = "f" Then
Chr10.Text = "F"
End If
If str(1) = "f" Then
Chr9.Text = "F"
End If
If str(2) = "f" Then
Chr8.Text = "F"
End If
If str(3) = "f" Then
Chr7.Text = "F"
End If
If str(4) = "f" Then
Chr6.Text = "F"
End If
If str(5) = "f" Then
Chr5.Text = "F"
End If
If str(6) = "f" Then
Chr4.Text = "F"
End If
If str(7) = "f" Then
Chr3.Text = "F"
End If
If str(8) = "f" Then
Chr2.Text = "F"
End If
If str(9) = "f" Then
Chr1.Text = "F"
End If
ElseIf Word_in.TextLength = 11 Then
If str(0) = "f" Then
Chr11.Text = "F"
End If
If str(1) = "f" Then
Chr10.Text = "F"
End If
If str(2) = "f" Then
Chr9.Text = "F"
End If
If str(3) = "f" Then
Chr8.Text = "F"
End If
If str(4) = "f" Then
Chr7.Text = "F"
End If
If str(5) = "f" Then
Chr6.Text = "F"
End If
If str(6) = "f" Then
Chr5.Text = "F"
End If
If str(7) = "f" Then
Chr4.Text = "F"
End If
If str(8) = "f" Then
Chr3.Text = "F"
End If
If str(9) = "f" Then
Chr2.Text = "F"
End If
If str(10) = "f" Then
Chr1.Text = "F"
End If
ElseIf Word_in.TextLength = 12 Then
If str(0) = "f" Then
Chr12.Text = "F"
End If
If str(1) = "f" Then
Chr11.Text = "F"
End If
If str(2) = "f" Then
Chr10.Text = "F"