Drew Wutka
DWUTKA at marlow.com
Mon May 5 15:28:32 CDT 2003
JC, why would you want to use late binding anyways? If you a dimensioning a variable with 'withevents', then you are going to want to handle the events for that object. If you are going to have different objects, but with the same events/properties, that sounds like you need to use Implements. Drew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, May 05, 2003 8:10 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Late binding Withevents Yep. I have found articles that state quite clearly that late binding does not work with Withevents. 8-( John W. Colby www.colbyconsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Monday, May 05, 2003 9:03 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Late binding Withevents John, Does it work if you remove the WithEvents? Jim DeMarco -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, May 05, 2003 8:33 AM To: AccessD Subject: [AccessD] Late binding Withevents Folks, I am trying to use the late binding technique where you use compiler constants to use early binding when developing and late binding for production. The following gives a compile error: #Const Dev = False #If Dev = True Then Dim WithEvents myOlApp As Outlook.Application #Else Dim WithEvents myOlApp As object #End If on the dim statement in the #Else clause. Are we saying that we can't use late binding if we dim an object withevents? If that is true, it is a rather serious flaw in the concept!!! John W. Colby www.colbyconsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (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 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com