frmparse.frm

来自「字符串分解程序」· FRM 代码 · 共 83 行

FRM
83
字号
VERSION 5.00
Begin VB.Form frmParse 
   Caption         =   "Parse Phrase"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6060
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   6060
   StartUpPosition =   3  'Windows Default
   Begin VB.Frame Frame1 
      Caption         =   "Word List"
      Height          =   2040
      Left            =   45
      TabIndex        =   3
      Top             =   1035
      Width           =   5910
      Begin VB.ListBox lstResults 
         Height          =   1620
         Left            =   90
         TabIndex        =   4
         Top             =   270
         Width           =   5730
      End
   End
   Begin VB.CommandButton cmdParse 
      Caption         =   "&Parse"
      Height          =   330
      Left            =   4680
      TabIndex        =   2
      Top             =   90
      Width           =   1275
   End
   Begin VB.TextBox txtParse 
      Height          =   285
      Left            =   1485
      TabIndex        =   1
      Text            =   "txtParse"
      Top             =   90
      Width           =   3075
   End
   Begin VB.Label Label1 
      Caption         =   "Phrase To Parse"
      Height          =   240
      Left            =   45
      TabIndex        =   0
      Top             =   135
      Width           =   1320
   End
End
Attribute VB_Name = "frmParse"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdParse_Click()
    
    Dim colWords    As Collection
    
    Dim lngWordCount    As Long
    Dim lngCounter      As Long
    
    lstResults.Clear
    
    Set colWords = ParseString(txtParse.Text)
    
    
    lngWordCount = colWords.Count
    
    For lngCounter = 1 To lngWordCount
        lstResults.AddItem colWords.Item(lngCounter).Value
        DoEvents
    Next lngCounter
    
    Set colWords = Nothing
    
End Sub


⌨️ 快捷键说明

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