Me Keyword

When a class can have more than one instance the Me keyword provides a way to refer to the specific instance of the class where the code is executing.


The "Me" keyword behaves like an implicitly declared variable.


It is very common to refer to class properties or methods from inside the class.
The keywprd "Me" refers to the current instance of the class.
This is optional but helps to being clarity to the code.


The Me keyword is automatically available to every procedure in a class module. If you have mutiple instances of a class then the "Me" keyword provides a way to refer to the specific instance of the class.


This keyword is particularly useful for passing information about the currently executing instance of a class to a procedure in another module.




© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited TopPrevNext