有一子程序定义为Public Sub aaa(a As Integer,b As Single),正确的调用形式是
举一反三
- 假定已定义一个过程Public Sub Cir(a As Single, b As Single),则正确的调用语句是
- 在窗体Form1中用“Public Sub Fun(x As Integer, y As Single)”定义过程Fun,在窗体Form2的某事件过程中定义了变量I和J均为Integer,若要在此过程中调用Form1中的Fun过程,则下列语句中正确的是 。
- 要求当鼠标在图片框P1中移动时,立即在图片中显示鼠标的位置坐标。下面能正确实现上述功能的事件过程是______。 A: Private Sub P1_MouseMove(Button As Integer,Shift As Integer,XAs Single,Y As Single) Print X,Y End Sub B: Private Sub P1_MouseDown(Button As Integer,Shift As Integer,XAs Single,Y As Single) Picture.Print X,Y End Sub C: Private Sub P1_MouseMove(Button As Integer,Shift As Integer,XAs Single,Y As Single) P1.Print X,Y End sub D: Private Sub Form_MouseMove(Button As Integer Shift As Integer,XAs Single,Y As Single) P1.Print X,Y End Sub
- 执行下列程序后,鼠标单击窗体,输出结果为( )。 Private Sub Form_Click() Print "Click"; End Sub Private Sub Form_MouseDown(Button As Integer, Shift A: As Integer,X As Single,Y As Single) B: Print "Down" C: End Sub D: Private Sub Form_MouseUp(Button As Integer, Shift_As Integer,X As Single,Y As Single) E: Print "Up" F: End SubA) DownUpClick G: B) ClickDownUp H: C) DownClickUp I: D) UpDownClick
- 已知过程定义的首行为Sub sum(a As Integer, b As Integer),则下面过程调用语句中正确的是________。