Execution error on close

Discussion in 'AutoCAD' started by yannickg, Feb 22, 2005.

  1. yannickg

    yannickg Guest

    Hi,

    I wrote a little VBA program to extract information from a block and
    add it to a MySQL database. Everything works fine except when I call
    my app with this line :

    (vl-vbarun "module1.recolte")

    and then click "Cancel" in my app which execute only one line of code :

    Private Sub cancelButton_Click()
    End
    End Sub

    I get this error in the command window of AutoCAD :

    Command: Execution error

    Anybody can help ?
     
    yannickg, Feb 22, 2005
    #1
  2. yannickg

    ygagne Guest

    never mind I found my bug, I was not closing my form the right way.

    I replaced :
    Private Sub cancelButton_Click()
    End
    End Sub

    With :
    Private Sub cancelButton_Click()
    Unload UserForm1
    End Sub
     
    ygagne, Feb 26, 2005
    #2
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.