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**
|
|
0
|
|
|
|
Reply
|
Utf
|
4/29/2010 1:23:01 PM |
|
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" <John@discussions.microsoft.com> wrote in message
news:FD7A4D23-0C15-4A96-BA31-D0E2F6A77F74@microsoft.com...
> 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**
|
|
0
|
|
|
|
Reply
|
Alex
|
4/29/2010 2:50:35 PM
|
|
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" <John@discussions.microsoft.com> wrote in message
> news:FD7A4D23-0C15-4A96-BA31-D0E2F6A77F74@microsoft.com...
> > 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**
>
> .
>
|
|
0
|
|
|
|
Reply
|
Utf
|
4/29/2010 8:58:01 PM
|
|
=?Utf-8?B?Sm9obg==?= <John@discussions.microsoft.com> wrote in
news:FD7A4D23-0C15-4A96-BA31-D0E2F6A77F74@microsoft.com:
> 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/
|
|
0
|
|
|
|
Reply
|
David
|
4/29/2010 11:36:26 PM
|
|
|
3 Replies
346 Views
(page loaded in 0.079 seconds)
Similiar Articles: Conflict in Reference Function - microsoft.public.access ...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, ... Write Conflict in Access with SQL server Tables - microsoft.public ...Conflict in Reference Function - microsoft.public.access ... Hi - Use the cStr() and DateValue() functions. ... Write Conflict in Access with SQL server Tables ... does Access have a Roundup function? - microsoft.public.access ...Conflict in Reference Function - microsoft.public.access ... Conflict in Reference Function - microsoft.public.access ... Anyone? I have a reference set to MS VBA, MS ... What is the meaning of the "$" in say the left$ function ...Conflict in Reference Function - microsoft.public.access ... VBA syntax uses left([string],[number char]) but the Reflection "Left" function is ... Left Function - microsoft.public.excel.miscConflict in Reference Function - microsoft.public.access ... VBA syntax uses left([string],[number char]) but the Reflection "Left" function is different it is looking for ... MS SQL has (nolock) - Access? - microsoft.public.access.queries ...Conflict in Reference Function - microsoft.public.access ... I have a reference set to MS VBA, MS Access 11 object libary, MS DAO Object Library, MS ... I want a footnote number (small number) at end of sentence ...Conflict in Reference Function - microsoft.public.access ... I want a footnote number (small number) at end of sentence ... Do you mean you want something like: War and ... how can i add reflection to an object? - microsoft.public ...Conflict in Reference Function - microsoft.public.access ... I have a reference set to MS VBA, MS Access 11 object libary, MS DAO ... I would like to add this library ... Date format question - Regional Setting? - microsoft.public.access ...Conflict in Reference Function - microsoft.public.access ... Date format question - Regional Setting? - microsoft.public.access ... If your database has a reference to ... Very urgent for autoincriment primary key - microsoft.public ...Conflict in Reference Function - microsoft.public.access ... Very urgent for autoincriment primary key - microsoft.public ..... for example, in defining the internal ... Answer : Conflict in Reference Function - GNT : your source for ...Conflict in Reference Function - answer - Anyone? I have a reference set to MS VBA, MS Access 11 object libary, MS DAO Object Library, MS ActiveX data object, MS ... Conflict in Reference Function DataBase - DataBase Discussion List ...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 Sc 8/1/2012 3:35:36 PM
|