假定已定义一个过程Public Sub Cir(a As Single, b As Single),则正确的调用语句是
举一反三
- 假定定义了一个过程Sub Add(a As Single, b As Single),则正确的调用语句是( )。 A: Add 12,12 B: Call Add [12,12] C: Call Add x,y D: Call Add (12, 12, x)
- 有一子程序定义为Public Sub aaa(a As Integer,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
- 下面有关注释语句的格式正确的是( )。 A: a=3:b=2 ‘对a、b赋值 B: Private Sub Command1_MouseDown(button AS Integer,shift As Integer, Rem鼠标按下事件的命令调用过程X As Single,Y As Single) C: ’注释内容 D: Rem注释内容