devxlogo

Using Me Object

Using Me Object

Question:
What is the different between using Me and FormActualName when accessing a form’s property or to pass the FRM to a subprogram.Is it ok to use ME all the time when possible?

Answer:
You can use the “Me” alias whenever you want to refer to the current form; that is, the form in which you are using the code. For instance, in a Form_Load event, Me would refer to the form that was loading. You have to be careful when you are referencing exact form names, especially if you are using multiple instances of forms, like a Notepad/Word application with MDI children.

devx-admin

Share the Post: