form1.frm
来自「蒋加伏主编VB程序设计第四版PPT及全部课本源码 北京邮电大学出版社 」· FRM 代码 · 共 37 行
FRM
37 行
VERSION 5.00
Begin VB.Form Form1
Caption = "例[5-11] 计算父女的年龄"
ClientHeight = 810
ClientLeft = 60
ClientTop = 345
ClientWidth = 4230
BeginProperty Font
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 810
ScaleWidth = 4230
StartUpPosition = 3 '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
Dim age As Integer
age = 12
While age * 2 <> age + 30
age = age + 1
Wend
Print "经过"; age - 12; " 年":
Print "小红父女的年龄分别是:"; age + 30; "和"; age
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?