About Visual Basic 6.0 development (on)

zhaozj2021-02-08  265

About Visual Basic 6.0 development (on)

2001-02-03 · New Day · Yesky

For programmers and programming enthusiasts, the technology in VB is a difficult point in learning. During the development of large software, the module (Moudle), Active OCX, Link Link (Active DLL) and class ( Class Moudle) constitutes a systematic, efficient software engineering, and the class's technology is the basis of control and link library technology, so the theoretical and programming methods of mastery are very meaningful. (1) Basic definition and application overview; class is an advanced code module including methods, attributes, data members, which are both within the category of the module, and an Active OCX without a graphical interface, programmers can use The control is the same as it, but can't see it, it is worth noting that the class cannot be inherited. Class enables us to efficiently complete complex operations for one or a few specific objects, the action of the object is the method of the class, the object's properties are the properties of the class. Relatively, if the programmed object is a group of things, then we use the standard module to be very suitable. In both cases, you should use the class to perform code processing: (1) Creating a large number of properties; (2) Improve the encapsulation of the code. The creation of the class is very simple. When you write, you can add a blank class when you select the Add Category item in the Project menu. Class files are typically saved as extensions in .cls. (2) Implementation of the method of the class; the method of class is similar to the interface function of the dynamic link library, which can accept the specified type parameters of other form code and pass to the class. Generally, the method of the class is to specify whether there is a return value. It is usually a public process in the class.

转载请注明原文地址:https://www.9cbs.com/read-3476.html

New Post(0)