Notice that you can't use anything like the My object but it isn't difficult to create a wrapper that allows the classes to be used without instantiation. That is, within a class definition Me. The Me keyword takes account of any virtual overriding that you may have but not any non-virtual overriding you might have implemented.
MyBase and MyClass. Answered by:. Archived Forums. Visual Basic. Not for VB6 questions. Sign in to vote. Please help!!!!! Saturday, September 18, AM. It means the current object instance. Within a section of code, within a Class, ME refers to itself as shown below. Saturday, September 18, PM. Usually using the Me keyword is not necessary. Get Programming Visual Basic. The keyword Me refers to the current instance of an object.
The Me reference is a hidden reference to every non-shared method of a class; shared methods are discussed later in this chapter. Each method can refer to the other methods and variables of that object by way of the Me reference. The Me reference is typically used in any of three ways. The first way is to qualify instance members that have the same name as parameters, as in the following:.
0コメント