📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
AutoRedraw = -1 'True
Caption = "统计字符 "
ClientHeight = 2505
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 2505
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "统计"
Height = 375
Left = 120
TabIndex = 2
Top = 1920
Width = 1215
End
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
AutoSize = -1 'True
Height = 495
Left = 120
Negotiate = -1 'True
ScaleHeight = 435
ScaleWidth = 4395
TabIndex = 1
Top = 1080
Width = 4455
End
Begin VB.TextBox Text1
Height = 375
Left = 480
TabIndex = 0
Text = "this is the visual basic!"
Top = 480
Width = 2895
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'CODE Manger By BcodeXRose
'******************************************************************
'************** 过程名称:Command1_Click
'************** 参数: 无
'******************************************************************
Private Sub Command1_Click()
Dim a(1 To 26) As Integer, c As String * 1
For i = 1 To Len(Text1.Text)
c = UCase(Mid(Text1, i, 1))
If c >= "A" And c <= "Z" Then
j = Asc(c) - 65 + 1
a(j) = a(j) + 1
End If
Next i
For j = 1 To 26
If a(j) > 0 Then Picture1.Print " "; Chr$(j + 64); "="; a(j);
Next j
Picture1.Print a(10)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -