[AccessD] Late binding Withevents

Jim DeMarco Jdemarco at hshhp.org
Mon May 5 08:02:58 CDT 2003


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".
***********************************************************************************



More information about the AccessD mailing list