📄 例5.4 判断字符类型.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "例5.4 判断字符类型"
ClientHeight = 2550
ClientLeft = 60
ClientTop = 345
ClientWidth = 4185
LinkTopic = "Form1"
ScaleHeight = 2550
ScaleWidth = 4185
StartUpPosition = 3 'Windows Default
Begin VB.TextBox Text1
Height = 495
Left = 1882
TabIndex = 1
Top = 544
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "判断"
Height = 495
Left = 1087
TabIndex = 0
Top = 1512
Width = 2055
End
Begin VB.Label Label1
BorderStyle = 1 'Fixed Single
Caption = "字符:"
Height = 495
Left = 1035
TabIndex = 2
Top = 540
Width = 735
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 strc As String
strc = Text1.Text
Select Case strc
Case "a" To "z", "A" To "Z"
Print strc + "是字母字符"
Case "0" To "9"
Print strc + "是数字字符"
Case Else
Print strc + "是其它字符"
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -