📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3645
ClientLeft = 60
ClientTop = 345
ClientWidth = 5310
LinkTopic = "Form1"
ScaleHeight = 3645
ScaleWidth = 5310
StartUpPosition = 3 'Windows Default
Begin VB.TextBox Text1
Height = 495
Left = 960
TabIndex = 4
Text = "10"
Top = 360
Width = 3015
End
Begin VB.CommandButton CmdByRef
Caption = "CmdByRef"
Height = 735
Left = 3120
TabIndex = 1
Top = 1560
Width = 1695
End
Begin VB.CommandButton CmdByVel
Caption = "CmdByVel"
Height = 735
Left = 240
TabIndex = 0
Top = 1560
Width = 1695
End
Begin VB.Label Label3
Caption = "Label3"
Height = 495
Left = 3120
TabIndex = 3
Top = 2400
Width = 1335
End
Begin VB.Label Label1
Caption = "Label1"
Height = 495
Left = 360
TabIndex = 2
Top = 2400
Width = 1335
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdByRef_Click()
Dim xx, resBR As Integer
xx = Text1.Text
resBR = test_ByRef(xx)
'And now BR and XX are pointing to the same address
Label3.Caption = "Like in the text box (+10)" & "-->" & xx
End Sub
Private Sub CmdByVel_Click()
Dim xx, resBV As Integer
xx = Text1.Text
resBR = test_ByVal(xx)
Label1.Caption = "Like in the text box" & " " & xx
'And now BR and XX are pointing NOT on the same address
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -