上传者: 43934844
|
上传时间: 2022-06-20 18:04:45
|
文件大小: 54KB
|
文件类型: DOC
"VB程序设计过程(一) " " " "收藏人:你喜欢那个 " " " " " " " "2012-05-13 " 阅:332 转:4 " " " 来源 " " " " " " " 分享 " " " " " " " " " " " " " " " " " " " " " " " " " "8.1 Sub过程 " "8.1.1 Sub过程的建立 " "1.定义Sub过程 " "过程定义的语法格式为: " "[Static][Private][Public]Sub过程名 ([形参表]) " "语句块1 " "[Exit Sub] " "[语句块2] " "End Sub " "说明: " "(1) Static:指定过程中的局部变量在内存中的存储方式。 " "(2) " "Private:表示Sub过程是私有的,只能被本模块中的其他过程访问,不能被其他模块中的过程访" "问。 " "(3) " "Public:表示Sub过程是公有过程,可以在程序的任何地方调用它。若省略,则默认为Public过 " "程。 " "(4) 过程名:命名规则与变量命名规则相同。无参数时,过程名后的括号不能省略。