针对传统数据验证方法的缺陷,借鉴Web应用中非侵入式验证的思想,基于Visual Basic编程环境下通过数据输入控件与验证组件之间的映射与绑定实现数据的非侵入式验证,利用子类化技术实现类似Web表单的非侵入式验证,能够在不修改源代码和界面的情况下给程序添加数据验证功能,给出了验证组件设计的思路与主要技术。%According to the limitation of traditional verification method,applying non-intrusive verification ideas in web application,the author tries to realize data non-intrusive verification by mapping and binding between data input control and verification of components base on VB.By using sub-classified technique to achieve a similar Web form non-intrusive verification,the author adds data validation function to the program without modify the source code and interface.Finally,the paper gives ideas and main technology about design of verification compo-nent .
展开▼