How about:Originally Posted by sweetbrett
Assuming there is no other sub running.Code:Private Sub CancelButton_Click() Unload Me End Sub
Registered forum members do not see this ad.
Is there a better way to kill a script when a cancel button is pressed other than:
the reason I ask is that when you kill the script this way, AutoCAD shows"Execution error" in the command window, which is kind of ugly and not really true.Code:Private Sub CancelButton_Click() End End Sub




How about:Originally Posted by sweetbrett
Assuming there is no other sub running.Code:Private Sub CancelButton_Click() Unload Me End Sub
Registered forum members do not see this ad.
much nicer, thanks.
Bookmarks