VERSION 5.00
Begin VB.Form frm1 
   BackColor       =   &H00FF8080&
   Caption         =   "Словарь компьютерных терминов"
   ClientHeight    =   3015
   ClientLeft      =   2565
   ClientTop       =   3150
   ClientWidth     =   7260
   LinkTopic       =   "Form1"
   ScaleHeight     =   3015
   ScaleWidth      =   7260
   Begin VB.CommandButton cmdVoc 
      Caption         =   "Словарь"
      Height          =   615
      Left            =   4200
      TabIndex        =   4
      Top             =   2160
      Width           =   2055
   End
   Begin VB.TextBox txtDesc 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1815
      Left            =   3120
      Locked          =   -1  'True
      MultiLine       =   -1  'True
      TabIndex        =   3
      Top             =   120
      Width           =   3855
   End
   Begin VB.CommandButton cmdDesc 
      Caption         =   "Считать определения"
      Height          =   615
      Left            =   240
      TabIndex        =   2
      Top             =   960
      Width           =   2175
   End
   Begin VB.CommandButton cmdTerm 
      Caption         =   "Считать термины"
      Height          =   615
      Left            =   240
      TabIndex        =   1
      Top             =   120
      Width           =   2175
   End
   Begin VB.TextBox txtTerm 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   450
      Left            =   120
      TabIndex        =   0
      Top             =   2280
      Width           =   2535
   End
End
Attribute VB_Name = "frm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim bytI As Byte, strA(1 To 10), strB(1 To 10), strC As String
Private Sub cmdTerm_Click()
Open "E:\practicum\VB\Projects\Z5_16\term.txt" For Input As #1
For bytI = 1 To 10
Input #1, strA(bytI)
Next bytI
Close #1
End Sub
Private Sub cmdDesc_Click()
Open "E:\practicum\VB\Projects\Z5_16\description.txt" For Input As #2
For bytI = 1 To 10
Input #2, strB(bytI)
Next bytI
Close #2
End Sub
Private Sub cmdVoc_Click()
For bytI = 1 To 10
If txtTerm.Text = strA(bytI) _
Then txtDesc.Text = strB(bytI): bytI = 11 _
Else txtDesc.Text = "Такого термина в словаре нет"
Next bytI
End Sub
