Francisco H Tapia
my.lists at verizon.net
Fri Mar 28 12:04:49 CST 2003
Thanks Bryan, I'm thinking I can set this class (CCID) as a generic variant variable type to be able to reuse. Any reason that may be a problematic? -Francisco http://rcm.netfirms.com On Friday, March 28, 2003 7:16 AM [GMT-8], Bryan Carbonnell <Bryan_Carbonnell at cbc.ca> wrote: : Here you go. My MainClass is equivalent to your clsCustomerConcern I : think. : : Ask if anything isn't clear. : : Bryan Carbonnell : bryan_carbonnell at cbc.ca : :::: my.lists at verizon.net 28-Mar-03 10:11:28 AM >>> : 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