Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

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 Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date