PC Review


Reply
Thread Tools Rate Thread

Any difference about "me" or without "me"

 
 
Agnes
Guest
Posts: n/a
 
      20th Jul 2004
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


 
Reply With Quote
 
 
 
 
Mike Smith
Guest
Posts: n/a
 
      20th Jul 2004
....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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Mattias Sjögren
Guest
Posts: n/a
 
      20th Jul 2004

>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.
 
Reply With Quote
 
Agnes
Guest
Posts: n/a
 
      20th Jul 2004
;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" <(E-Mail Removed)> ???
news:%(E-Mail Removed) ???...
>
> >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.



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      20th Jul 2004
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


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      20th Jul 2004
* "Mike Smith" <(E-Mail Removed)> 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/>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Field Names: "LongName", "ShortName", "Code", "Description","Comments" PeteCresswell Microsoft Access 2 25th Feb 2009 11:41 PM
<FORM METHOD="post" onSubmit="return fieldcheck()" name="orientation" action="http://ws-kitty.BU.edu/AT/survey/orientation/script/write.asp" language="JavaScript"> Joeyej Microsoft ASP .NET 0 4th Jun 2004 08:55 PM
what is the difference between a ".wab", the "contacts" folder, and a "personal address book" albert Microsoft Outlook 2 11th Jan 2004 05:20 PM
Manual "Windows Update" produces "ActiveX/active scripting" error message even with "LOW" security level setting in "Trusted" Zone Ray2 Windows XP Help 1 14th Nov 2003 06:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:23 PM.