By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,114 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

Any difference about "me" or without "me"

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
....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" <ag***@dynamictech.com.hk> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
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" <ag***@dynamictech.com.hk> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl... 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

Nov 20 '05 #2

P: n/a
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 20 '05 #3

P: n/a
;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.
"Mattias Sjögren" <ma********************@mvps.org> ???
news:%2***************@TK2MSFTNGP11.phx.gbl ???...
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Nov 20 '05 #4

P: n/a
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
Nov 20 '05 #5

P: n/a
* "Mike Smith" <te**@test.com> scripsit:
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_*').

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.