Private Sub Form_Click( ) Dim x As Integer,y As Integer,z As Integer x=1:y=2:z=3 Call Procl(x,x,z)
发布网友
发布时间:2022-05-24 14:01
我来回答
共1个回答
热心网友
时间:2023-10-16 07:36
Call Procl(x,x,z) 这是个调用过程的语句,他把x,y,z的值传递给procl这个过程,在这个过程中执行相应的操作。Call Procl(x,x,z) 应该是Call Procl(x,y,z)吧,你打错了哈 下面给你一个列子:
判断三个数中最大的那个数:
Private Sub Form_Click()
Dim x As Integer, y As Integer, z As Integer
x = 1: y = 2: z = 3
Call procl(x, y, z)
End Sub
Public Sub procl(a%, b%, c%)
Dim i, j, teap As Integer
If a > b Then teap = a Else teap = b
If teap > c Then teap = teap Else teap = c
Print "输出最大值:" & teap
End Sub
自己看哈,希望能帮助你