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.

See also  Why ChatGPT Is So Important Today
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist