For my own practices.
I like to put "Me".
e.g IF Me.txtInvoice.t extlength = 0 ....... etc
Me.txt.....etc
However, Is there any difference (without Me) ??
Thanks 5 1570
....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***@dynamict ech.com.hk> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. . For my own practices. I like to put "Me". e.g IF Me.txtInvoice.t extlength = 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***@dynamict ech.com.hk> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. . For my own practices. I like to put "Me". e.g IF Me.txtInvoice.t extlength = 0 ....... etc Me.txt.....etc
However, Is there any difference (without Me) ?? Thanks
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.
;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.o rg> ???
news:%2******** *******@TK2MSFT NGP11.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.
Hi Agnes,
An often made misunderstandin g, 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" <te**@test.co m> 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/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 Then
RunCommand acCmdSaveRecord
End If
DoCmd.Close
or
|
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
'https://www.paypal.com/cgi-bin/webscr'. A virtual path is expected."
how can I post to paypal for processing ?
|
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: "This implicitely invokes the class's ToString method".
This would be clear if Me.ToString was used, which I tested and works too!.
Actually, Me.Anything works and gives the same results as long as Anything
is a class member.
|
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 really it should be the other way around.
And yet, although this seems fairly obvious to me,
having tried myself to write a web browser and given up,
I don't see a lot of movement by major web browser
projects in a direction that might TRULY fix the...
|
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 the default
deslection to be the latter. How can I change this, please?
Thanks!
Ron
| |
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 Setup
program.
>From the Documentation
http://msdn2.microsoft.com/en-us/library/5f981xa1.aspx
===========================================================
"The InstallAllUsers property for a deployment project determines
whether an application is...
|
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
The above code was tested and works.
|
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?
"Me" in VB (6, 7, 2005) is exactly like "this" in C# or C++. Its
meaning hasn't changed since VB 6. True or False?
Many thanks,
|
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 "Remember Me" check box was not working *at all*.
What I mean is when I try to log in with "Remember Me" check box
checked, the login fails completely and I'm taken back to the login
page (Can't say I left it though :) ). When loggin in with this...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |