Any difference about "me" or without "me"

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

For my own practices.
I like to put "Me".
e.g IF Me.txtInvoice.textlength = 0 ....... etc
Me.txt.....etc

However, Is there any difference (without Me) ??
Thanks
 
....coding me or the lack of it is the same..the only "difference" is the
length of the line of code

however with the "ME" its easy to access the controls on the form , if ur
unsure or just lazy to type the name of the textbox u can always
autocomplete it with the intellisense...


--
Regards,
Mike
http://bikesh.europe.webmatrixhosting.net
http://www.planetsourcecode.com (search keyword: phoetus)

Agnes said:
For my own practices.
I like to put "Me".
e.g IF Me.txtInvoice.textlength = 0 ....... etc
Me.txt.....etc

However, Is there any difference (without Me) ??
Thanks
....coding me or the lack of it is the same..the only "difference" is the
length of the line of code

however with the "ME" its easy to access the controls on the form , if ur
unsure or just lazy to type the name of the textbox u can always
autocomplete it with the intellisense...
 
However, Is there any difference (without Me) ??

No, not as long as you don't have any conflicting variables. If you
have both a local and a class level variable with the same name, you
can disambiguate it with Me.



Mattias
 
;O ic thanks .
for my vfp experience.
If I use " thisform.txt.....etc" , the program will run slowly . so I wonder
whehter got the same effect.
 
Hi Agnes,

An often made misunderstanding, in an interpretted language the lenght of a
dataname can make sense because it has always to be loaded and evaluated.

For a program language which makes executables (in whatever form and without
debugging information) the lenght or form of your variable names should not
matter at all. In that a dataname is nothing more than a mnemonic for the
programmer.

I hope this helps?

Cor
 
* "Mike Smith said:
however with the "ME" its easy to access the controls on the form , if ur
unsure or just lazy to type the name of the textbox u can always
autocomplete it with the intellisense...

That's why I always use 'Me', except for private variables ('m_*').
 
Back
Top