How to run a private subroutine from a toolbar

Discussion in 'AutoCAD' started by Carlos, Jul 14, 2003.

  1. Carlos

    Carlos Guest

    Hi.I try use

    ^C^C -vbarun Module1.subname

    this work if the subroutine is public, but with the private word give a
    error "Don't find Module1.subname"

    e. g.

    Sub subname()
    my code here
    end sub >>>>>>> this work

    Private Sub subname()
    my code here
    end sub>>>>>>>Give Error

    I use Acad2000i

    Some one help me on this

    thanks
     
    Carlos, Jul 14, 2003
    #1
  2. That is correct. You may only call Public macros from your menu.
     
    Frank Oquendo, Jul 14, 2003
    #2
  3. Carlos

    Carlos Guest

    Thank's for response Frank.

    assuming i am the others nine kinds of people who don't understand 000111,
    you know another way to call a private subroutine.

    carlos
     
    Carlos, Jul 14, 2003
    #3
  4. The only way to call a private subroutine is from a public subroutine
    within the same project.
     
    Frank Oquendo, Jul 14, 2003
    #4
  5. Carlos

    Carlos Guest

    Thank's Frank i see the light.
     
    Carlos, Jul 15, 2003
    #5
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.