473,395 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Any difference about "me" or without "me"

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
5 1542
....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
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
;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
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
* "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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: RC | last post by:
If I want to explicitly save the record before executing a Close action. Which of the following should I use? Or does it depend on whether it is based on a Form or something else? If Me.Dirty...
8
by: gh0st54 | last post by:
Hi I'm trying to post to Paypal to process payment I try a server.tranfer but I get the error : "System.ArgumentException: Invalid path for child request...
6
by: John | last post by:
Hi, Maybe someone can explain the use of "Me" to me? The example class CPoint3 uses the Me reference in the output statement: Console.WriteLine("CPoint3 constructor: {0}", Me) The text states:...
32
by: Next | last post by:
Hi folks, Years ago, it occurred to me that a lot of the trouble of writing web browsers is caused by the upside-down arrangement of things: Javascript code exists inside a document, when...
4
by: Ronald S. Cook | last post by:
I created an MSI install for a Windows app I wrote. When installing, however, it defaults to install for "Just Me" instead of "Eveveryone" (meaning anyone who uses this computer). I would like...
1
by: ImageAnalyst | last post by:
Yay!!! They fixed this for VS2005. You can now set the default installation to be "Everyone" instead of "Just Me" and you can control whether you even want those radio button installed in your...
4
by: darrell | last post by:
I recently wrote a program in Access VBA that contains this snippet of code: For i = 1 to TotalBanks With Me("txtBank" & Chr(i + 64)) .BackColor = vbBlue .ForeColor = vbWhite End With Next i...
1
by: Ray | last post by:
Hello, Please help a VB newbie :) I'm a bit confused, reading all the MyClass, Me, My keywords of VB. I think I get MyClass and My, but Me... Can you just tell me if I get this correctly? ...
1
by: Abdo Haji-Ali | last post by:
Greetings, I'm using the ASP.NET membership model in my site and everything works perfectly, locally. However when I uploaded my site (To my host which is GoDaddy), and ran it remotely the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.