数字组成的倒三角.frm
来自「Visual Basic课程举例1 有很好的例题」· FRM 代码 · 共 38 行
FRM
38 行
VERSION 5.00
Begin VB.Form Form1
Caption = " "
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 735
Left = 1440
TabIndex = 0
Top = 960
Width = 1575
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Sub Command1_Click()
Dim tmp As String
tmp = ""
For i = 10 To 1 Step -1
For j = 0 To i - 1
tmp = tmp & CStr(j)
Next j
tmp = tmp & vbCrLf
Next i
MsgBox tmp
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?