[dba-VB] Class Tips

Jim DeMarco Jdemarco at hshhp.org
Fri Mar 28 08:24:12 CST 2003


Basically you faked inheritance in VB6 right?  If you ever get a chance to check it out one of the neat improvements in VB.NET is better inheritance implentation.

Jim DeMarco
Director of Product Development
HealthSource/Hudson Health Plan


-----Original Message-----
From: Bryan Carbonnell [mailto:Bryan_Carbonnell at cbc.ca]
Sent: Friday, March 28, 2003 9:11 AM
To: dba-vb at databaseadvisors.com
Subject: Re: [dba-VB] Class Tips


I did a quick and dirty demo of what I was talking about on the way in to work this morning.

Let me know if you would like me to send it to you. It's a whole 3K zipped.

Bryan Carbonnell
bryan_carbonnell at cbc.ca

>>> carbonnb at sympatico.ca 28-Mar-03 5:50:48 AM >>>
On 28 Mar 2003 at 0:29, Francisco Tapia wrote:

> I have a class and want to give each property some additional methods
> such as the Oldvalue property, am I thinking this right? or will I
> need to build it another way for example, todo the following my class
> has this:
> 
> CC.CCID = 1234
> Private mvarCCID As Long
> Public Property Let CCID(ByVal vData As Long)
>     mvarCCID = vData
> End Property
> 
> I should be able to figure out how to do this but I have not found any
> good tutorials on the web Debug.print CC.CCID.OldValue
> 
> How would I do the above?


I think you will need to create a CCID class with a Value and 
OldValue properties.

Then in your CC Class, CCID would return the pointer to your new 
CCID class and if you have set Value as the Default property, you 
should still be able to just use Debug.Print CC.CCID to get the 
value of CCID.

--
Bryan Carbonnell - carbonnb at sympatico.ca 
Earth is the insane asylum for the universe.


_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com 
http://databaseadvisors.com/mailman/listinfo/dba-vb 
http://www.databaseadvisors.com 


_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com



***********************************************************************************
"This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message.  Thank You".
***********************************************************************************



More information about the dba-VB mailing list