VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   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             =   2040
      Width           =   2775
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Sub Swap1(ByVal x As Integer, ByVal y As Integer)
    Dim t   As Integer
    t = x: x = y: y = t
End Sub
Public Sub Swap2(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 = 10: b = 20
    Swap1 a, b
    Print "A1="; a, "B1="; b
    a = 10: b = 20
    Swap2 a, b
    Print "A2="; a, "B2="; b
End Sub

