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

📄 frmsplit.frm

📁 Visual Basic 6 大学教程的代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmSplit 
   AutoRedraw      =   -1  'True
   Caption         =   "Using Function Split"
   ClientHeight    =   1770
   ClientLeft      =   5490
   ClientTop       =   3990
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   1770
   ScaleWidth      =   4680
End
Attribute VB_Name = "frmSplit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' Fig. 8.29
' Using function Split
Option Explicit

Private Sub Form_Load()
   Dim x() As String, y As String
   Dim z As Integer
   
   y = "This is a sentence with 7 tokens"
   x = Split(y)
   
   For z = LBound(x) To UBound(x)
      Print x(z)
   Next z
   
End Sub

⌨️ 快捷键说明

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