PC Review


Reply
Thread Tools Rate Thread

Conflict in Reference Function

 
 
John
Guest
Posts: n/a
 
      29th Apr 2010
Anyone?

I have a reference set to MS VBA, MS Access 11 object libary, MS DAO Object
Library, MS ActiveX data object, MS Excel 11 object library, and MS Scripting
Runtime.

At this point everything is working fine. We use "Reflection" to access our
cost system. I would like to add this library "Reflection for ReGIS
Graphics" or "Reflection for Regis Graphics ActiveX Control 1.0 Type Library"
but when I do I get a conflict with one of my modules' "Left()" function.

VBA syntax uses left([string],[number char]) but the Reflection "Left"
function is different it is looking for "object.Left = value" type of syntax.

How do I resolve this "Function Conflict"?
--
Thanks in advance!
**John**
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      29th Apr 2010
Hi,
you can use VBA.Left to explicitly call VBA function and Reflection.Left to
call other one, where Reflection is exact name of your library

You can also put VBA higher then Reflection in References list, then Left()
will be VBA function

--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com


"John" <(E-Mail Removed)> wrote in message
news:FD7A4D23-0C15-4A96-BA31-(E-Mail Removed)...
> Anyone?
>
> I have a reference set to MS VBA, MS Access 11 object libary, MS DAO
> Object
> Library, MS ActiveX data object, MS Excel 11 object library, and MS
> Scripting
> Runtime.
>
> At this point everything is working fine. We use "Reflection" to access
> our
> cost system. I would like to add this library "Reflection for ReGIS
> Graphics" or "Reflection for Regis Graphics ActiveX Control 1.0 Type
> Library"
> but when I do I get a conflict with one of my modules' "Left()" function.
>
> VBA syntax uses left([string],[number char]) but the Reflection "Left"
> function is different it is looking for "object.Left = value" type of
> syntax.
>
> How do I resolve this "Function Conflict"?
> --
> Thanks in advance!
> **John**


 
Reply With Quote
 
John
Guest
Posts: n/a
 
      29th Apr 2010
Thanks Alex... That cleared it up.
--
Thanks in advance!
**John**


"Alex Dybenko" wrote:

> Hi,
> you can use VBA.Left to explicitly call VBA function and Reflection.Left to
> call other one, where Reflection is exact name of your library
>
> You can also put VBA higher then Reflection in References list, then Left()
> will be VBA function
>
> --
> Best regards,
> ___________
> Alex Dybenko (MVP)
> http://accessblog.net
> http://www.PointLtd.com
>
>
> "John" <(E-Mail Removed)> wrote in message
> news:FD7A4D23-0C15-4A96-BA31-(E-Mail Removed)...
> > Anyone?
> >
> > I have a reference set to MS VBA, MS Access 11 object libary, MS DAO
> > Object
> > Library, MS ActiveX data object, MS Excel 11 object library, and MS
> > Scripting
> > Runtime.
> >
> > At this point everything is working fine. We use "Reflection" to access
> > our
> > cost system. I would like to add this library "Reflection for ReGIS
> > Graphics" or "Reflection for Regis Graphics ActiveX Control 1.0 Type
> > Library"
> > but when I do I get a conflict with one of my modules' "Left()" function.
> >
> > VBA syntax uses left([string],[number char]) but the Reflection "Left"
> > function is different it is looking for "object.Left = value" type of
> > syntax.
> >
> > How do I resolve this "Function Conflict"?
> > --
> > Thanks in advance!
> > **John**

>
> .
>

 
Reply With Quote
 
David W. Fenton
Guest
Posts: n/a
 
      30th Apr 2010
=?Utf-8?B?Sm9obg==?= <(E-Mail Removed)> wrote in
news:FD7A4D23-0C15-4A96-BA31-(E-Mail Removed):

> I have a reference set to MS VBA, MS Access 11 object libary, MS
> DAO Object Library, MS ActiveX data object, MS Excel 11 object
> library, and MS Scripting Runtime.
>
> At this point everything is working fine. We use "Reflection" to
> access our cost system. I would like to add this library
> "Reflection for ReGIS Graphics" or "Reflection for Regis Graphics
> ActiveX Control 1.0 Type Library" but when I do I get a conflict
> with one of my modules' "Left()" function.
>
> VBA syntax uses left([string],[number char]) but the Reflection
> "Left" function is different it is looking for "object.Left =
> value" type of syntax.
>
> How do I resolve this "Function Conflict"?


By specifying the parent library, as Alex has explained.

But I'd say you shouldn't add any references at all beyond the first
3 you list, and do all the rest with late binding. Then you wouldn't
have this problem at all.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conflict with Valid Range Reference Error in Microsoft Excel 2007 Vamsi Microsoft Excel Programming 4 3rd Mar 2009 01:29 PM
Conflict with valid range reference error =?Utf-8?B?c21hcnV6emk=?= Microsoft Excel Misc 1 14th Mar 2007 10:05 PM
Conflict with namespace and project reference =?Utf-8?B?QW5hbmRoaQ==?= Microsoft ASP .NET 0 1st Nov 2006 03:06 PM
Footnote Reference style conflict =?Utf-8?B?TGxveWQ=?= Microsoft Word Document Management 5 19th Oct 2005 10:40 AM
version conflict adding a reference to interop_msxml davec426913@hotmail.com Microsoft VB .NET 0 13th Sep 2005 03:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:05 AM.