VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   4350
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   8115
   LinkTopic       =   "Form1"
   ScaleHeight     =   4350
   ScaleWidth      =   8115
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command2 
      Caption         =   "Command2"
      Height          =   855
      Left            =   6120
      TabIndex        =   4
      Top             =   1920
      Width           =   1695
   End
   Begin VB.TextBox Text3 
      Height          =   285
      Left            =   6960
      TabIndex        =   3
      Text            =   "255"
      Top             =   360
      Width           =   735
   End
   Begin VB.TextBox Text2 
      Height          =   285
      Left            =   6120
      TabIndex        =   2
      Text            =   "224"
      Top             =   360
      Width           =   735
   End
   Begin VB.TextBox Text1 
      Height          =   4095
      Left            =   120
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Вертикаль
      TabIndex        =   1
      Top             =   120
      Width           =   5655
   End
   Begin VB.CommandButton Command1 
      Caption         =   "вывести"
      Height          =   855
      Left            =   6120
      TabIndex        =   0
      Top             =   960
      Width           =   1695
   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()
Text1.Text = Text1.Text & "символ" & Chr(9) & "10-й код" & Chr(9) & "2-й код" & vbCrLf
For i = Text2.Text To Text3.Text
Text1.Text = Text1.Text & Chr(i) & Chr(9) & i & Chr(9) & d2b(i) & vbCrLf
Next i
End Sub

Private Function d2b(ByVal dc)
Do While dc
b2 = dc Mod 2
dc = dc \ 2
b = b2 & b
Loop
d2b = b
End Function

Private Sub Command2_Click()
Text1.Text = ""
End Sub
