首页 | 官方网站   微博 | 高级检索  
     

基于VBA的控件类设计与应用
引用本文:付尚朴,李方军,韩卫华.基于VBA的控件类设计与应用[J].软件,2012(8):42-43.
作者姓名:付尚朴  李方军  韩卫华
作者单位:中国工程物理研究院工学院,四川绵阳621999
摘    要:在设计基于VBA的Word试题模板时,发现在VBE环境下无控件数组,使得同类控件只能有分开的不同的事件过程,导致编程效率低。本文通过类设计实现同类控件具有相同的事件过程。在控件类的设计过程中,从类的概念和实践出发,得出控件可类化的一些属性和事件过程,对类属性的初始化采用了直接和间接的两种方法,给出了利用复选按钮进行单项选择的关键技术代码。

关 键 词:控件类  控件可类化的特征  属性初始化方法

Control-class Design and Application on VBA
FU Shang-pu,LI Fang-jun,HAN Wei-hua.Control-class Design and Application on VBA[J].Software,2012(8):42-43.
Authors:FU Shang-pu  LI Fang-jun  HAN Wei-hua
Affiliation:FU Shang-pu, LI Fang-jun, H.AN Wei-hua (CAEP Institute of Technology, Mianyang Sichuan, 621999)
Abstract:When the Word exam template on VBA is designed, VBE has not control array.The similar control have different events process.Programming is low efficiency. This paper realizes that similar control have the same event process through the class design. In the control-class design, from the concept of class and the practice, some properties and events process are generalized on control class.Two methods of the direct and indirect initialize the class attribute.The code of key technology is given,when check buttons realize the single item choice.
Keywords:Control class  Control characteristic on class  Method of attribute-initialization
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号