Office 2003, ArcMap: could it be a problem

Discussion in 'AutoCAD' started by reneram, Oct 24, 2004.

  1. reneram

    reneram Guest

    I'm experiencing a strange thing, a package of programs written and working on more than 20 computers is not working on our new pc that has, different from the other machines, Office 2003 and ArcMap installed on it. The strange thing is that, while debugging the problem, it comes out that the instruction that stuck's is a simple:

    Left$(myString, Len (myString)-nChars)

    Any suggestions.
    Thanks René
     
    reneram, Oct 24, 2004
    #1
  2. René, Try it as such...

    Left$(myString, (Len(myString) - nChars))
     
    Paul Richardson, Oct 24, 2004
    #2
  3. That's typically a missing reference.
     
    Frank Oquendo, Oct 24, 2004
    #3
  4. reneram

    reneram Guest

    Sorry, I've transcribed wrong the example.
    What I don't understand is that these progs work well with no errors on all the other machines of the office, but these have Office XP installed on them and non ArcMap.
    The problem is not in the program or on the references, what I suspect, but I'm not sure is that Office 2003 or ArcMap, install or substitute some kind of library/dll that is different than the usual VBE6.DLL.
     
    reneram, Oct 25, 2004
    #4
  5. I don't have ArcMap but run the same function
    on apps using Office03..gl...
     
    Paul Richardson, Oct 25, 2004
    #5
  6. reneram

    Murph Guest

    Here's the ArcMap referance:
    Function Left$(String As String, Length As Long) As String
    Which is using the VBA.string referance. My referances in ArcMAP is pointing
    to this file
    C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL (Date
    of Jan 12, 2001)
    The same as my AutoCAD2005 (Map2005) and Office 2000

    Murph


    all the other machines of the office, but these have Office XP installed on
    them and non ArcMap.
    but I'm not sure is that Office 2003 or ArcMap, install or substitute some
    kind of library/dll that is different than the usual VBE6.DLL.
     
    Murph, Oct 25, 2004
    #6
  7. reneram

    Thomas Homan Guest

    Rene,

    I've run into the same thing periodically, It comes down to having two
    ..DLL's with either Left$ or Len defined as slightly different functions. To
    correct it, I had to use the full definition of the function. That is making
    the call as VBA.Left$(myString, VBA.Len (myString)-nChars)

    Try looking at the Object Browser in the VBA IDE and doing a search for both
    Left$ and Len on the problem machine...I suspect you'll find a .DLL loaded
    that you didn't expect with the same function name....

    Regards,

    Tom
    working on more than 20 computers is not working on our new pc that has,
    different from the other machines, Office 2003 and ArcMap installed on it.
    The strange thing is that, while debugging the problem, it comes out that
    the instruction that stuck's is a simple:
     
    Thomas Homan, Oct 25, 2004
    #7
  8. reneram

    reneram Guest

    Thanks Tom, That was thew problem!!!
     
    reneram, Nov 8, 2004
    #8
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.