UCase problem

Discussion in 'AutoCAD' started by matthew g., Jul 23, 2003.

  1. matthew g.

    matthew g. Guest

    I have been running this code for a while and I *think* this is the first
    time running it under Acad2002 instead of 2000 but now I get a "Compile
    error: Can't find project or library" message and the word "UCase" is
    highlighted in the code below:

    With ThisDrawing.Utility
    .InitializeUserInput 1, "Vert Horiz"
    strDirection = .GetKeyword(vbCr & "Lettered grid lines should run
    [Vert/Horiz]: ")
    Select Case UCase(strDirection)
    ...do stuff here

    The help examples show it exactly like I have it, did something change that
    Help isn't telling me about? Thanks.
     
    matthew g., Jul 23, 2003
    #1
  2. matthew g.

    joesu Guest

    Open the code in 2000 - C/P to CB or Notepad. Then open a new project in 2002 and paste the code in the new project and run it. See if that clears your problem.

    FYI, I believe the problem stems from the fact you changed from VBA5 to VBA6 when you went from 2000 to 2002.

    Joe
    --
     
    joesu, Jul 23, 2003
    #2
  3. matthew g.

    matthew g. Guest

    Open the code in 2000 - C/P to CB or Notepad. Then open a new project in
    2002 and paste the code in the new project and run it. See if that clears
    your problem.
    VBA6 when you went from 2000 to 2002.
    Worked beautifully, thanks Joe.
     
    matthew g., Jul 24, 2003
    #3
  4. matthew g.

    joesu Guest

    Cool, that confirms my theory.

    Joe
    --
     
    joesu, Jul 24, 2003
    #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.