VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text1 
      Height          =   555
      Left            =   2910
      TabIndex        =   1
      Text            =   "Text1"
      Top             =   1260
      Width           =   1245
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   495
      Left            =   2520
      TabIndex        =   0
      Top             =   2640
      Width           =   1455
   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()
    strC = Text1
    If UCase(strC) >= " A" And UCase(strC) <= "Z" Then              '大小写字母均考虑
        Print strC + "是字母字符"
    ElseIf strC >= " 0" And strC <= " 9" Then                   ' 表示是数字字符
        Print strC + "是数字字符"
    Else                                                ' 除上述字符以外的字符
        Print strC + "其他字符"
    End If
End Sub
