Only in a property or procedure declaration statement 只能在屬性或過(guò)程聲明語(yǔ)句中使用
You write procedures by first writing a procedure declaration 通過(guò)先編寫(xiě)過(guò)程聲明來(lái)編寫(xiě)過(guò)程。
The following is an example of a simple procedure declaration 下面是一個(gè)簡(jiǎn)單過(guò)程聲明的示例。
When you typefor example , the first line of a procedure declaration , 當(dāng)鍵入一個(gè)過(guò)程聲明的第一行(如
Parameters are declared in the procedure declaration , not in individual lines of code 參數(shù)是在過(guò)程聲明中聲明的,而不是在單個(gè)代碼行中聲明的。
Parameters are declared in the procedure declaration in the parentheses that follow the procedure name 在過(guò)程聲明中,參數(shù)在緊跟著過(guò)程名的括號(hào)中聲明。
Usually , you cannot call a procedure with more arguments than the procedure declaration specifies 通常,調(diào)用的過(guò)程所包含的參數(shù)不能超出過(guò)程聲明指定的數(shù)目。
Provides links to topics covering changes to parameter passing , procedure calling sequences , and procedure declarations 提供到包含對(duì)參數(shù)傳遞、過(guò)程調(diào)用順序和過(guò)程聲明更改的主題的鏈接。
In the procedure declarations , the set of arguments for each procedure must be different or an error will occur 過(guò)程。在過(guò)程聲明中,每個(gè)過(guò)程都必須具有一組不同的參數(shù),否則將會(huì)出現(xiàn)錯(cuò)誤。
When entering code for form or control event procedures , first add the procedure declaration in visual basic 2005 and then upgrade only the body of the procedure . the 當(dāng)為窗體或控件事件過(guò)程輸入代碼時(shí),首先在visual basic 2005中添加過(guò)程聲明,然后僅升級(jí)該過(guò)程的程序體。