VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3960
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   6540
   LinkTopic       =   "Form1"
   ScaleHeight     =   3960
   ScaleWidth      =   6540
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   615
      Left            =   3600
      TabIndex        =   3
      Top             =   2640
      Width           =   1815
   End
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   4680
      TabIndex        =   2
      Text            =   "Text3"
      Top             =   1560
      Width           =   1215
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   2640
      TabIndex        =   1
      Text            =   "Text2"
      Top             =   1560
      Width           =   1215
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   720
      TabIndex        =   0
      Text            =   "Text1"
      Top             =   1560
      Width           =   1215
   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()
    Dim x As Integer
    Dim a As Integer
    Dim b As Integer
    Dim c As Integer
    a = Val(Text1.Text)
    b = Val(Text2.Text)
    c = Val(Text3.Text)
    If a > b Then
        x = a
    Else
      _______
    End If
    If x < c Then
      ________
    End If
      ________

End Sub
