RichTextBox5.Text = ""
RichTextBox4.Text = ""
Dim M As String = TextBox2.Text ''گرفتن اطلاعات
If M.Trim("+") = "" Then Exit Sub ''
If CheckBox11.Checked Then
M = TrimE(M)
CheckBox11C = True
ElseIf M.Replace("ك", "ک").Replace("ي", "ی").Replace("ﯼ", "ی").Replace("ى", "ی").Replace("ة", "ه") = TrimE(M) Then
M = M.Replace("ك", "ک").Replace("ي", "ی").Replace("ﯼ", "ی").Replace("ى", "ی").Replace("ة", "ه")
CheckBox11C = True
Else
CheckBox11C = False
End If
Dim if1 As UShort = 0
Dim if2 As UShort = 6000
Dim n As Integer = 0
Label8.Text = "1"
n2 = 0
if1 = 0 'از حدیث
if2 = logh1.Length - 1
ReDim JostoJoo(-1)
SearchMatn(logh1, M, if1, if2, n)
Label8.Text = "2"
n2 = 0
if1 = 0 'از حدیث
if2 = logh2.Length - 1
ReDim JostoJoo(-1)
SearchMatn(logh2, M, if1, if2, n)
Label8.Text = "0"
If Label3.Text = "0" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = os1.Length - 1
ReDim JostoJoo(-1)
SearchMatn(os1, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("os1")
Next
ElseIf Label3.Text = "1" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = os2.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(os2, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("os2")
Next
ElseIf Label3.Text = "2" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = os3.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(os3, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("os3")
Next
ElseIf Label3.Text = "3" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = os4.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(os4, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("os4")
Next
ElseIf Label3.Text = "4" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = os5.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(os5, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("os5")
Next
ElseIf Label3.Text = "5" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = os6.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(os6, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("os6")
Next
ElseIf Label3.Text = "6" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = os7.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(os7, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("os7")
Next
ElseIf Label3.Text = "7" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = os8.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(os8, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("os8")
Next
ElseIf Label3.Text = "8" Then
'''''''''''''''''''''''''''''''''''''''استبصار''''''''''''''''''''''''''''''''''''''''
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = es1.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(es1, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("es1")
Next
ElseIf Label3.Text = "9" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = es2.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(es2, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("es2")
Next
ElseIf Label3.Text = "10" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = es3.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(es3, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("es3")
Next
ElseIf Label3.Text = "11" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = es4.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(es4, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("es4")
Next
ElseIf Label3.Text = "12" Then
'''''''''''''''''''''''''''''''''lkh
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = man1.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(man1, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("man1")
Next
ElseIf Label3.Text = "13" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = man2.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(man2, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("man2")
Next
ElseIf Label3.Text = "14" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = man3.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(man3, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("man3")
Next
ElseIf Label3.Text = "15" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = man4.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(man4, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("man4")
Next
ElseIf Label3.Text = "16" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah1.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah1, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah1")
Next
ElseIf Label3.Text = "17" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah2.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah2, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah2")
Next
ElseIf Label3.Text = "18" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah3.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah3, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah3")
Next
ElseIf Label3.Text = "19" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah4.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah4, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah4")
Next
ElseIf Label3.Text = "20" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah5.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah5, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah5")
Next
ElseIf Label3.Text = "21" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah6.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah6, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah6")
Next
ElseIf Label3.Text = "22" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah7.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah7, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah7")
Next
ElseIf Label3.Text = "23" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah8.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah8, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah8")
Next
ElseIf Label3.Text = "24" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah9.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah9, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah9")
Next
ElseIf Label3.Text = "25" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah10.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah10, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah10")
Next
ElseIf Label3.Text = "26" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah11.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah11, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah11")
Next
ElseIf Label3.Text = "27" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah12.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah12, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah12")
Next
ElseIf Label3.Text = "28" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah13.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah13, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah13")
Next
ElseIf Label3.Text = "29" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah14.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah14, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah14")
Next
ElseIf Label3.Text = "30" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah15.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah15, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah15")
Next
ElseIf Label3.Text = "31" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah16.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah16, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah16")
Next
ElseIf Label3.Text = "32" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah17.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah17, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah17")
Next
ElseIf Label3.Text = "33" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah18.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah18, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah18")
Next
ElseIf Label3.Text = "34" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah19.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah19, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah19")
Next
ElseIf Label3.Text = "35" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah20.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah20, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah20")
Next
ElseIf Label3.Text = "36" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah21.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah21, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah21")
Next
ElseIf Label3.Text = "37" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah22.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah22, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah22")
Next
ElseIf Label3.Text = "38" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah23.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah23, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah23")
Next
ElseIf Label3.Text = "39" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah24.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah24, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah24")
Next
ElseIf Label3.Text = "40" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah25.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah25, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah25")
Next
ElseIf Label3.Text = "41" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah26.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah26, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah26")
Next
ElseIf Label3.Text = "42" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah27.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah27, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah27")
Next
ElseIf Label3.Text = "43" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah28.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah28, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah28")
Next
ElseIf Label3.Text = "44" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah29.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah29, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah29")
Next
ElseIf Label3.Text = "45" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah30.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah30, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah30")
Next
ElseIf Label3.Text = "46" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah31.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah31, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah31")
Next
ElseIf Label3.Text = "47" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah32.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah32, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah32")
Next
ElseIf Label3.Text = "48" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah33.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah33, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah33")
Next
On Error GoTo e
ElseIf Label3.Text = "49" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah34.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah34, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah34")
Next
On Error GoTo e
ElseIf Label3.Text = "50" Then
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah35.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah35, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah35")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah36.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah36, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah36")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah37.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah37, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah37")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah38.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah38, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah38")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah39.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah39, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah39")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah40.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah40, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah40")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah41.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah41, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah41")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah42.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah42, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah42")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah43.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah43, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah43")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah44.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah44, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah44")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah45.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah45, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah45")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah46.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah46, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah46")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah47.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah47, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah47")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah48.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah48, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah48")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah49.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah49, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah49")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah50.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah50, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah50")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah51.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah51, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah51")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah52.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah52, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah52")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah53.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah53, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah53")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah54.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah54, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah54")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah55.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah55, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah55")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah56.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah56, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah56")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah57.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah57, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah57")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah58.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah58, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah58")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah59.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah59, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah59")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah60.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah60, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah60")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah61.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah61, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah61")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah62.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah62, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah62")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah63.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah63, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah63")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah64.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah64, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah64")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah65.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah65, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah65")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah66.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah66, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah66")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah67.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah67, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah67")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah68.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah68, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah68")
Next
n = 0
n2 = 0
if1 = 0 'از حدیث
if2 = bah69.Length - 1 'تا حدیث
ReDim JostoJoo(-1)
SearchMatn(bah69, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah69")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah70.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah70, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah70")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah71.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah71, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah71")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah72.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah72, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah72")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah73.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah73, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah73")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah74.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah74, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah74")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah75.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah75, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah75")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah76.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah76, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah76")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah77.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah77, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah77")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah78.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah78, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah78")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah79.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah79, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah79")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah80.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah80, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah80")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah81.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah81, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah81")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah82.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah82, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah82")
Next
n = 0
n2 = 0
if1 = bah83.Length - 1
if2 = 0
ReDim JostoJoo(-1)
SearchMatn(bah83, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah83")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah84.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah84, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah84")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah85.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah85, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah85")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah86.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah86, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah86")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah87.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah87, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah87")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah88.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah88, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah88")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah89.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah89, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah89")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah90.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah90, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah90")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah91.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah91, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah91")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah92.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah92, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah92")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah93.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah93, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah93")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah94.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah94, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah94")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah95.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah95, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah95")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah96.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah96, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah96")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah97.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah97, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah97")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah98.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah98, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah98")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah99.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah99, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah99")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah100.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah100, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah100")
Next
n = 0
n2 = 0
if1 = 0
if2 = bah101.Length - 1
ReDim JostoJoo(-1)
SearchMatn(bah101, M, if1, if2, n)
For a As Integer = 1 To n
ListBox2.Items.Add("bah101")
Next
Label2.Text = "3"
MsgBox("پایان جستجو", MsgBoxStyle.OkOnly, MsgBoxStyle.Critical)
End If
If n > 0 Then
ListBox1.SelectedIndex = 0
Else
End If
On Error GoTo e
If Label2.Text = "1" Then
If Label6.Text = ListBox2.Items.Count Then
Label3.Text = Label3.Text + 1
Button5_Click(Nothing, Nothing)
End If
End If
Label6.Text = ListBox2.Items.Count
Label8.Text = "1"
On Error GoTo e
e: Exit Sub
End Sub
Private Sub SearchMatn(ByVal Matn() As String, ByVal M As String, ByVal if1 As UShort, ByVal if2 As UShort, ByRef n As Integer)
For i As UShort = if1 To if2
If SearchAye(Matn(i), M) Then
For ij As Integer = 0 To JostoJoo.Length - 1
If JostoJoo(ij) = i Then GoTo 1
Next
ReDim Preserve JostoJoo(JostoJoo.Length)
JostoJoo(JostoJoo.Length - 1) = i
'' ListBox1.Items.Add(i)
If Label8.Text = "1" Then
RichTextBox4.AppendText(logh1(i))
End If
If Label8.Text = "2" Then
RichTextBox5.AppendText(logh2(i))
End If
If Label8.Text = "0" Then
ListBox1.Items.Add(i)
End If
If Label8.Text = "9" Then
ListBox5.Items.Add(i)
End If
n += 1
End If
1: Next
End Sub
Private Function SearchAye(ByVal Aye As String, ByVal M As String) As Boolean
Dim r As Integer = M.Split("+").Length
Dim r2 As Integer = 0
For Each i As String In M.Split("+")
If i <> "" Then
If CheckBox11C Then
If SearchAyeE(TrimE(Aye), i) Then
r2 += 1
Else
Return False
End If
Else
If SearchAye2(Aye, i) Then
r2 += 1
Else
Return False
End If
End If
End If
Next
If r = r2 Then
Return True
Else
Return False
End If
End Function
Private Function SearchAye2(ByVal Aye2 As String, ByVal M As String) As Boolean
Dim rn As Long = n2
Dim r2 As Integer = 0
For i As Integer = 0 To Aye2.Length - M.Length
r2 = 0
For M2 As Integer = 0 To M.Length - 1
Dim NX As Boolean = False
Try
If SearchHarf(Aye2.Substring(i, 1), M(M2), NX) Then
If NX Then
M2 -= 1
Else
r2 += 1
End If
i += 1
If r2 = M.Length Then
rn += 1
End If
Else
Exit For
End If
Catch
End Try
Next
Next
If rn > n2 Then
n2 = rn
Return True
Else
Return False
End If
End Function
Private Function SearchHarf(ByVal H As Char, ByVal M As Char, ByRef Nx As Boolean) As Boolean
If M = H Then
Return True
Else
Select Case H
Case "آ", "إ", "أ"
If M = "ا" Then Return True
Case "ي", "ئ", "ى", "ی"
If M = "ی" Then Return True
If M = "ي" Then Return True
If M = "ى" Then Return True
Case "ؤ"
If M = "و" Then Return True
Case "ه"
If M = "ة" Then Return True
Case "ة", "ۀ"
If M = "ه" Then Return True
Case "ك", "ک"
If M = "ك" Or M = "ک" Then Return True
Case "ْ", "ً", "ٌ", "َ", "ُ", "ِ", "ّ", "ٍ", ",", "،", ":", "؛", "{", "}", "»", "«", "(", ")", "ـ", """", "[", "]"
Select Case M
Case "ْ", "ً", "ٌ", "َ", "ُ", "ِ", "ّ", "ٍ", ",", "،", ":", "؛", "{", "}", "»", "«", "(", ")", "ـ", """", "[", "]"
Return False
Case Else
Nx = True
Return True
End Select
End Select
Return False
End If
End Function
Private Function TrimE(ByVal E As String) As String
E = E.Replace("ْ", "")
E = E.Replace("ً", "")
E = E.Replace("ٌ", "")
E = E.Replace("َ", "")
E = E.Replace("ُ", "")
E = E.Replace("ِ", "")
E = E.Replace("ّ", "")
E = E.Replace("ٍ", "")
E = E.Replace(",", "")
E = E.Replace("،", "")
E = E.Replace(":", "")
E = E.Replace("؛", "")
E = E.Replace("{", "")
E = E.Replace("}", "")
E = E.Replace("»", "")
E = E.Replace("«", "")
E = E.Replace("(", "")
E = E.Replace(")", "")
E = E.Replace("ـ", "")
E = E.Replace("""", "")
E = E.Replace("[", "")
E = E.Replace("]", "")
E = E.Replace("آ", "ا")
E = E.Replace("أ", "ا")
E = E.Replace("إ", "ا")
E = E.Replace("ي", "ی")
E = E.Replace("ﯼ", "ی")
E = E.Replace("ى", "ی")
E = E.Replace("ئ", "ی")
E = E.Replace("ؤ", "و")
E = E.Replace("ة", "ه")
E = E.Replace("ۀ", "ه")
E = E.Replace("ك", "ک")
Return E
End Function
Private Function SearchAyeE(ByVal AyeE As String, ByVal M As String) As Boolean
Dim rn As Long = n2
For i As Integer = 0 To AyeE.Length - M.Length
If AyeE.Substring(i, M.Length) = M Then rn += 1
Next
If rn > n2 Then
n2 = rn
Return True
Else
Return False
End If
End Function