VERSION 5.00
Begin VB.Form frm1 
   BackColor       =   &H00FF8080&
   Caption         =   "Русско-английский и англо-русский словарь"
   ClientHeight    =   3030
   ClientLeft      =   3030
   ClientTop       =   2985
   ClientWidth     =   6000
   LinkTopic       =   "Form1"
   ScaleHeight     =   3030
   ScaleWidth      =   6000
   Begin VB.CommandButton cmdER 
      Caption         =   "Англо-руссский словарь"
      Height          =   615
      Left            =   3360
      TabIndex        =   5
      Top             =   2040
      Width           =   2295
   End
   Begin VB.CommandButton cmdRE 
      Caption         =   "Русско-английский словарь"
      Height          =   615
      Left            =   240
      TabIndex        =   4
      Top             =   2040
      Width           =   2415
   End
   Begin VB.TextBox txtEnglish 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   2880
      TabIndex        =   3
      Top             =   960
      Width           =   2655
   End
   Begin VB.TextBox txtRussian 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   2880
      TabIndex        =   2
      Top             =   120
      Width           =   2655
   End
   Begin VB.CommandButton cmdDesc 
      Caption         =   "Считать английские слова"
      Height          =   615
      Left            =   240
      TabIndex        =   1
      Top             =   960
      Width           =   2175
   End
   Begin VB.CommandButton cmdTerm 
      Caption         =   "Считать русские слова"
      Height          =   615
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   2175
   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_17\russian.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_17\english.txt" For Input As #2
For bytI = 1 To 10
Input #2, strB(bytI)
Next bytI
Close #2
End Sub
Private Sub cmdRE_Click()
For bytI = 1 To 10
If txtRussian.Text = strA(bytI) _
Then txtEnglish.Text = strB(bytI): bytI = 11 _
Else txtEnglish.Text = "Такого термина в словаре нет"
Next bytI
End Sub
Private Sub cmdER_Click()
For bytI = 1 To 10
If txtEnglish.Text = strB(bytI) _
Then txtRussian.Text = strA(bytI): bytI = 11 _
Else txtRussian.Text = "Такого термина в словаре нет"
Next bytI
End Sub
