John Bartow
jbartow at earthlink.net
Thu Feb 27 20:13:00 CST 2003
Hi John, Could you send this new demo to me? > -----Original Message----- > From: accessd-admin at databaseadvisors.com > [mailto:accessd-admin at databaseadvisors.com] > Sent: Wednesday, February 19, 2003 11:08 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] need ideas > > John, > > I forgot to mention that you will also need to add a collection in the > form where you will store the pointer to the classes so that they don't > immediately unload again. Using the method I showed previously, you had a > physical variable dimensioned for each class. Now you want to automate > the thing so that as many classes load as are needed. This works but the > pointer to the class has to be stored somewhere. That somewhere would be > the collection. You also need to build a function specifically for > instantiating the class. The new form code would look like: > > I have modified my demo to add another form that adds the classes into a > collection and it is available to anyone who wants it. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-admin at databaseadvisors.com > [mailto:accessd-admin at databaseadvisors.com] > Sent: Wednesday, February 19, 2003 10:16 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] need ideas > > John, > Is it acceptable to reference the collection of the OptionGroup which was > passed by ref to the class? > > I was thinking that if it was then I could traverse the collection to find > the OptionButton which has the same value as the OptionGroup and the based > on the value color the label. > > My goal being that I could traverse the Form's control collection on the > OnOpen event and instantiate all of the OptionGroups in one statement > rather than having to organically know and type in the names of all the > frames and option buttons. > > JB > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2580 bytes Desc: not available URL: <http://databaseadvisors.com/pipermail/accessd/attachments/20030227/4c6f241c/attachment-0001.bin>