VERSION 5.00
Begin VB.Form frm1 
   BackColor       =   &H00FFFFFF&
   Caption         =   "Поиск в строковом массиве"
   ClientHeight    =   1524
   ClientLeft      =   48
   ClientTop       =   336
   ClientWidth     =   3744
   BeginProperty Font 
      Name            =   "Times New Roman"
      Size            =   12
      Charset         =   204
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   1524
   ScaleWidth      =   3744
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmd2 
      Caption         =   "Поиск"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   7.8
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   492
      Left            =   2160
      TabIndex        =   1
      Top             =   720
      Width           =   1332
   End
   Begin VB.CommandButton cmd1 
      Caption         =   "Заполнить массив"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   7.8
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   492
      Left            =   240
      TabIndex        =   0
      Top             =   720
      Width           =   1452
   End
End
Attribute VB_Name = "frm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim strA(1 To 33) As String, bytI, bytN As Byte
'Заполнение массива с клавиатуры
Sub cmd1_Click()
For bytI = 1 To 33
strA(bytI) = InputBox("Введите букву", "Заполнение массива")
Next bytI
End Sub
'Поиск элемента
Sub cmd2_Click()
strB = InputBox("Введите искомую букву", "Поиск")
For bytI = 1 To 33
If strB = strA(bytI) Then bytN = bytI
Next bytI
frm1.Print "Буква и ее номер: "; strB; "-"; bytN
End Sub

