VERSION 5.00
Begin VB.Form frm1 
   BackColor       =   &H00FFFFFF&
   Caption         =   "Задание 5.33"
   ClientHeight    =   1212
   ClientLeft      =   3672
   ClientTop       =   3924
   ClientWidth     =   4848
   BeginProperty Font 
      Name            =   "MS Sans Serif"
      Size            =   12
      Charset         =   204
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   1212
   ScaleWidth      =   4848
   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          =   495
      Left            =   1800
      TabIndex        =   0
      Top             =   600
      Width           =   1215
   End
End
Attribute VB_Name = "frm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim strA, strB, strX, strY As String, bytI As Byte
Private Sub cmd1_Click()
strA = InputBox("Введите текст", "Ввод текста")
strX = InputBox("Введите символ, который необходимо заменить", "Ввод первого символа")
strY = InputBox("Введите символ, который необходимо вставить", "Ввод второго символа")
Print "Старый текст: "; strA
For bytI = 1 To Len(strA)
strB = Mid$(strA, bytI, 1)
If strB = strX Then Mid$(strA, bytI, 1) = strY
Next bytI
Print "Новый текст: "; strA
End Sub
