Right$ function?

Discussion in 'AutoCAD' started by john m, Jun 10, 2004.

  1. john m

    john m Guest

    Hello,

    I wrote a VBA program which works fine on my machine, but chokes on
    someone else's.

    The user selects a piece of text and the program uses the text to query
    some XML data.

    The program trims off the control characters %%U which causes the text
    to be underlined in ACAD but is not relevent to the data.

    His machine says it doesnt understand this most basic BASIC function Right$.
    Where did it go?

    Why does it work on my machine but not someone else's?


    Is there some way to make an installation program for a VBA project? Such
    that any missing DLL's and/or VBA commands that the program uses will be
    supplied to the user's machine?

    thanks for any assistance

    jm
     
    john m, Jun 10, 2004
    #1
  2. Remove the $ sign from Right - its been RIGHT for a long time now. Best
    guess is your machine probably has an older vb dll on it that understands
    the Right$ command while the other user's doesn't.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Jun 10, 2004
    #2
  3. john m

    Ed Jobe Guest

    Vba can bomb on standard functions if you have a missing reference. The user probably doesn't have the xml support, etc.
     
    Ed Jobe, Jun 10, 2004
    #3
  4. john m

    john m Guest

    thanks ed

    you were correct. i used a VB6 install of another program which uses the same dll

    now this other machine understands simple VBA functions as well as the missing big stuff

    thanks again

    jm
    Vba can bomb on standard functions if you have a missing reference. The user probably doesn't have the xml support, etc.
     
    john m, Jun 10, 2004
    #4
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.