例10.frm

来自「在VB5环境下开发的VB程序集,窗体控件源代码.」· FRM 代码 · 共 42 行

FRM
42
字号
VERSION 5.00
Begin VB.Form FRM10_4_10 
   Caption         =   "例10:Line Input应用(单击窗体)"
   ClientHeight    =   4140
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   6330
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   12
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   4140
   ScaleWidth      =   6330
   StartUpPosition =   3  '窗口缺省
End
Attribute VB_Name = "FRM10_4_10"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
Open App.Path + "\MyFile2.txt" For Output As #1
Print #1, 10, -20
Print #1, "10", "-20"
Close

Dim S1 As String, S2 As String
Open App.Path + "\MyFile2.txt" For Input As #1
Line Input #1, S1
Line Input #1, S2
Close
Print S1
Print S2
End Sub

⌨️ 快捷键说明

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