VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3690
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5655
   LinkTopic       =   "Form1"
   Picture         =   "11б чтение.frx":0000
   ScaleHeight     =   3690
   ScaleWidth      =   5655
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command2 
      Caption         =   "Очистка"
      Height          =   495
      Left            =   4320
      TabIndex        =   3
      Top             =   2520
      Width           =   1215
   End
   Begin VB.ListBox List2 
      Height          =   2790
      Left            =   2040
      Sorted          =   -1  'True
      TabIndex        =   2
      Top             =   600
      Width           =   1935
   End
   Begin VB.ListBox List1 
      Height          =   2790
      Left            =   120
      TabIndex        =   1
      Top             =   600
      Width           =   1815
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   495
      Left            =   4320
      TabIndex        =   0
      Top             =   3120
      Width           =   1215
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim strA(1 To 33) As String
Open "alpha.txt" For Input As #1
For i = 1 To 33
Input #1, strA(i)
List1.AddItem strA(i)
'Form1.Print strA(i); ",";
Next
Close #1
Form1.Cls
strB = InputBox("Введите искомую букву", "Поиск")
'

For i = 1 To 33
If strB = strA(i) Then N = i
Next i
Form1.Print
Form1.Print "Номер искомого элемента-"; strB; N
'For i = 1 To 10
List2.AddItem strA(N)
'Next i
End Sub

Private Sub Command2_Click()
List2.Clear
End Sub
