以下叙述中正确的是( )。
A.Private Sub Form_Mouse Down(Button As Integer,Shift As Integer,- X As Single,Y As Single) If Button=2 Then PopupMenu Bs,2 End Sub
B.Private Sub Form_MouseDown(Button As Integer,Shift As Integer,- X As Single,Y As Single) PopupMenu Bs End Sub
C.Private Sub FOrm_MouseDown(Button As Integer,Shift As Integer,- X As Single,Y As Single) PopupMenu Bs,0 End Sub
D.Private Sub Form_MouseDown(Button As Integer,Shin As Integer,- X As Single,Y As Single) If(Button=vbLeftButton)Or(Button=vbRightButton)Then PopupMenu Bs End Sub
参考答案:A
解析:在程序的多级调用中,如果在某个子程序的返回语句中加入了选项TO MASTER,那么在执行程序嵌套时,它们的返回次序将被改变。本题在子程序PROG3.prg中加入了选项TO MASTER,那它们的返回次序将是由子程序 PROG3.prg直接返回到主程序。