Jim DeMarco
Jdemarco at hshhp.org
Fri Mar 28 11:44:26 CST 2003
There's another method that involves using the PropertyBag property. If you set the class Persistable property to: 1 - Persistable you can save and retrieve the values. Here's a link I found on codehound.com. http://www.vbwm.com/art_1999/whatsnew/persist.asp HTH, Jim DeMarco -----Original Message----- From: Francisco Tapia [mailto:my.lists at verizon.net] Sent: Friday, March 28, 2003 10:11 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Class Tips Thanks Bryan, Please do send me that example so I can see what you mean.. :) I was placing all the property attributes of a CC into a class named clsCustomerConcern and then just populate them at form load time (unbound form). so the load event would have the following ID's set CC.CCID = 1234 CC.AssignedID = {Some Guid} CC.Notes = "The customer wants some brochures" but then I'd like to also call an OldValue to each of these properties, I suppose it's just not possible right? I know I can do it all with a disconnected ADO recordset where each field has an OldValue, but then that's not as fun as whacking my head on my desk ;o) -Francisco http://rcm.netfirms.com/ On Friday, March 28, 2003 6:11 AM [GMT -8], Bryan Carbonnell <Bryan_Carbonnell at cbc.ca> wrote: : 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. _______________________________________________ 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". ***********************************************************************************