?? 交換兩個數.frm
字號:
VERSION 5.00
Begin VB.Form Form1
Caption = "交換兩個數"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.PictureBox Picture1
Height = 975
Left = 1800
ScaleHeight = 915
ScaleWidth = 1155
TabIndex = 6
Top = 1680
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "交換"
Height = 495
Left = 3360
TabIndex = 4
Top = 600
Width = 975
End
Begin VB.TextBox Text2
Height = 375
Left = 1800
TabIndex = 3
Top = 960
Width = 1095
End
Begin VB.TextBox Text1
Height = 375
Left = 1800
TabIndex = 2
Top = 120
Width = 1095
End
Begin VB.Label Label3
Caption = "交換的結果"
Height = 375
Left = 360
TabIndex = 5
Top = 1920
Width = 1215
End
Begin VB.Label Label2
Caption = "輸入第二個數b"
Height = 375
Left = 360
TabIndex = 1
Top = 1080
Width = 1335
End
Begin VB.Label Label1
Caption = "輸入第一個數a"
Height = 375
Left = 360
TabIndex = 0
Top = 240
Width = 1335
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Sub swap(x As Integer, y As Integer)
Dim t As Integer
t = x
x = y
y = t
End Sub
Private Sub Command1_Click()
Dim a As Integer, b As Integer
a = Text1.Text
b = Text2.Text
swap a, b
Picture1.Print "a="; a
Picture1.Print "b="; b
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -