473,387 Members | 1,876 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,387 software developers and data experts.

Re: nested classes and properties and imports inherits implements

On Fri, 11 Apr 2008 13:59:23 -0700 (PDT), no**************@hotmail.com
wrote:
>Jack,

Apologies if I'm using incorrect terminology. (It seems nowadays as if
we get one or two apps built then move to another development
platform!)

I'm going to have to take this weekend to wrap my head the code you
were kind enough to post. It looks like what I'm aiming for. Also, the
"m_" prefix has me curious as what that implies since I've just
noticed it as "m_ChildFormNumber" in the MDIParent form.

Thanks,
-Scott
When you have a public property with a private variable to hold its
contents, you can't name both the same. With C# you can make their
case different. With VB you can't do that because VB is case
insensitive, so one common way to deal with this is to put m_ on front
of the private variable. There is nothing magic about using m_.
Jun 27 '08 #1
1 801
On Apr 12, 1:53 am, Jack Jackson <jjack...@cinnovations.netwrote:
On Fri, 11 Apr 2008 13:59:23 -0700 (PDT), nottarealaddr...@hotmail.com
<snip>
When you have a public property with a private variable to hold its
contents, you can't name both the same. With C# you can make their
case different. With VB you can't do that because VB is case
insensitive, so one common way to deal with this is to put m_ on front
of the private variable. There is nothing magic about using m_.
Gotcha! It's the same as prefixing the Booleans with bool, Integers
with int, etc.

Hopefully without getting too personal, I'm sitting here after all my
housework is done, showered, TV off. I'm physically relaxed and I've
had time to wrap my head around the code sample you provided, tweaked
the names to my application (it makes more sense to me when used in a
particular application). It worked like a charm. I coded it, and I
started to enter a line of code to test it. When I got to
"Me.Aspect1.Read =" , Intellisense popped up with a little choice menu
consisting of True and False--exactly what I was looking for. And this
concept will be so useful for other things.

All I can say is SWEEEEEEEEEEEEEEEEEEEEEEEEEEEEET! (And I've never had
the urge to say that before!)

This is a high-profile application and the first one I'm doing in
VB2005. You are going to make job so much easier and now I feel I can
get this project into roll-out before my surgery as my boss wants.
(New hip, so I'll be out maybe 4-6 weeks.)

Thank you for taking the time to walk me through these new concepts!
-Scott
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nick | last post by:
My client uses a SQL Database to store their usernames and passwords, and I do not believe they have AD...no big deal... I wrote a class to create a generic identity and generic principal so that...
6
by: B0nj | last post by:
I've got a class in which I want to implement a property that operates like an indexer, for the various colors associated with the class. For instance, I want to be able to do 'set' operations...
1
by: Aidan Glendye | last post by:
Hi, I am trying to store various objects within session. Due to the site being hosted in a web farm we are going to have to use either State Server or SQL Server to persist the data in...
0
by: Ewart MacLucas | last post by:
generated some WMI managed classes using the downloadable extensions for vs2003 from mircrosoft downloads; wrote some test code to enumerate the physicall processors and it works a treat, but a...
5
by: Atley | last post by:
I am trying to set up a nested collection so I can run statements like this: me.lblquestions.text = mysteps.item(1).questions(1).Asked Any ideas on how to do this? I have created a...
7
by: Ryan Shaw | last post by:
I’m having a small problem with inheritance with a hierarchy of classes The example is Class Class Private m_classB as Class Class Class End Clas End Clas
7
by: Ron | last post by:
Hello, I have 4 classes that use 4 DTS packages on 4 different tables. So I have Dim cls1 As New clsDTS1, cls2 As New clsDTS2 Dim cls3 As New clsDTS3, cls4 As New clsDTS4 Each class has a...
2
by: Miky | last post by:
Hi, I'm looking resources or tutorial where I can learn how to add properties to other objects at design time for VB.NEt or C#. I want to reproduce the same effect as when your drop the...
7
by: Bart_D | last post by:
Hi, Can anybody explain me what's the difference between for example: imports system.data implements ICallbackEventHandler inherits System.Web.UI.Page Thanks Bart
8
by: =?Utf-8?B?QmVu?= | last post by:
Hi, I have a couple of questions about the proper design of classes. I'll use a simple Customer class for my question. 1) Lets say that I have this Customer class like I said, and I want to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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...
0
Oralloy
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,...

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.