?? 實(shí)驗(yàn)2.3.frm
字號(hào):
VERSION 5.00
Begin VB.Form 整除顯示
Caption = "Form1"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 615
Left = 1440
TabIndex = 2
Top = 1680
Width = 1335
End
Begin VB.ListBox List1
Height = 420
Left = 1200
TabIndex = 0
Top = 720
Width = 1695
End
Begin VB.Label Label1
Caption = "輸出100到200之間被3整除的數(shù)"
Height = 375
Left = 120
TabIndex = 1
Top = 120
Width = 2895
End
End
Attribute VB_Name = "整除顯示"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim x As Integer, y As Boolean, z As Integer
z = 0
For x = 100 To 200
y = x Mod 3
If Not y Then
List1.AddItem x, z
z = z + 1
End If
Next x
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -