⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 vb电子书籍
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "统计字符 "
   ClientHeight    =   3585
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5910
   LinkTopic       =   "Form1"
   ScaleHeight     =   3585
   ScaleWidth      =   5910
   StartUpPosition =   3  '窗口缺省
   Begin VB.PictureBox Picture1 
      Height          =   2055
      Left            =   2160
      ScaleHeight     =   1995
      ScaleWidth      =   1755
      TabIndex        =   5
      Top             =   720
      Width           =   1815
   End
   Begin VB.CommandButton Command2 
      Caption         =   "合并"
      Height          =   375
      Left            =   3600
      TabIndex        =   3
      Top             =   3000
      Width           =   1095
   End
   Begin VB.TextBox Text3 
      Height          =   2055
      Left            =   4200
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   2
      Top             =   720
      Width           =   1575
   End
   Begin VB.TextBox Text1 
      Height          =   2055
      Left            =   120
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   1
      Top             =   720
      Width           =   1815
   End
   Begin VB.CommandButton Command1 
      Caption         =   "分隔"
      Height          =   375
      Left            =   1080
      TabIndex        =   0
      Top             =   3000
      Width           =   1215
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "输入数字串              图形框                  合并"
      Height          =   180
      Left            =   120
      TabIndex        =   4
      Top             =   360
      Width           =   4680
   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
Dim a() As String, n%

'******************************************************************
'************** 过程名称:Command1_Click
'************** 参数: 无
'******************************************************************
Private Sub Command1_Click()
Dim temp As String
Dim i As Integer
temp = Replace(Text1, ",,", ",")
a = Split(temp, ",")
For i = 0 To UBound(a)
Picture1.Print a(i)
Next i
End Sub
  
'******************************************************************
'************** 过程名称:Command2_Click
'************** 参数: 无
'******************************************************************
Private Sub Command2_Click()
  Text2 = Join(a, " ")
End Sub
  
'******************************************************************
'************** 过程名称:Text1_KeyPress
'************** 参数:KeyAscii 为Integer型
'******************************************************************
Private Sub Text1_KeyPress(KeyAscii As Integer)
  Dim s As String * 1
  s = Chr(KeyAscii)
  Select Case s
    Case "0" To "9", ",", ".", " - ", "-"
    Case Else
      KeyAscii = 0
  End Select
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -