form1.frm

来自「本程序适合办公室人员使用」· FRM 代码 · 共 46 行

FRM
46 行
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   750
   ClientLeft      =   60
   ClientTop       =   420
   ClientWidth     =   2460
   LinkTopic       =   "Form1"
   ScaleHeight     =   750
   ScaleWidth      =   2460
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "生成文件"
      Height          =   495
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   2175
   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 i As Integer
Dim ym As Integer

For ym = 1 To 12
For i = 1 To 31
FileNum = FreeFile()
Open App.Path & "\" & ym & "\" & ym & i & ".txt" For Output As FileNum
Print #FileNum, ""
Close FileNum
'
FileNum = FreeFile()
Open App.Path & "\" & ym & "\" & ym & i & "A.txt" For Output As FileNum
Print #FileNum, ""
Close FileNum
'
Next i
Next ym
End Sub

⌨️ 快捷键说明

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