Private Sub Form_Click( ) Dim x As Integer,y As Integer,z As

1个回答

  • 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

    自己看哈,