How to cancel a command in VBA

Discussion in 'AutoCAD' started by L.Ram Sharan, Oct 17, 2004.

  1. L.Ram Sharan

    L.Ram Sharan Guest

    Hello:
    I use Begin command event to check if Erase command is given .
    If so, i confirm with the user if he wants to delete the selected object..
    Is there any way here to cancel the command from being executed if the user
    dosn't want to delete the command?
    I can Undo after the object is deleted using sendcommand.But i am looking
    forward to hear about a straight method.
    Thank you!
    Ram
     
    L.Ram Sharan, Oct 17, 2004
    #1
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.