[單項(xiàng)選擇題] 已知有下面過(guò)程: Private Sub proc1(a As Integer,b As String,Optional x As Boole
2021-07-20
[單項(xiàng)選擇題] 已知有下面過(guò)程: Private Sub proc1(a As Integer,b As String,Optional x As Boolean) ...... End Sub 正確調(diào)用此過(guò)程的語(yǔ)句是______。
A.Call procl(5)
B.Call procl 5,"abc",False
C.procl(12,"abc",Tru
D.procl 5,"abc"
正確答案:D
參考解析:[評(píng)析] Visual Basic中,可以直接使用過(guò)程名調(diào)用過(guò)程,也可以結(jié)合Call關(guān)鍵字調(diào)用。使用Call調(diào)用過(guò)程時(shí),參數(shù)列表必須用圓括號(hào)括起。其形式為: 子過(guò)程名 [參數(shù)列表] Call子過(guò)程名 ([參數(shù)列表])
詞條內(nèi)容僅供參考,如果您需要解決具體問(wèn)題
(尤其在法律、醫(yī)學(xué)等領(lǐng)域),建議您咨詢(xún)相關(guān)領(lǐng)域?qū)I(yè)人士。