.NET

Reply
Distinguished Contributor
junoj
Posts: 116
Registered: ‎02-26-2009
Message 1 of 4 (249 Views)
Accepted Solution

'End' substiture

249 Views, 3 Replies
08-08-2013 02:55 PM

In vba it was very convenient to use “END” the exit a sub at any point. I have a lot of code that I am trying to translate to .net  . I was hopeful if I could find a “END” substitute so that I do not have to rewrite a lot of code.

 

Thank you in advance

You can use "Exit Sub" or "Return"

*Expert Elite*
arcticad
Posts: 1,285
Registered: ‎06-21-2004
Message 2 of 4 (248 Views)

Re: 'End' substiture

08-08-2013 02:57 PM in reply to: junoj

You can use "Exit Sub" or "Return"

---------------------------



(defun botsbuildbots() (botsbuildbots))
Distinguished Mentor
BlackBox_
Posts: 773
Registered: ‎02-25-2013
Message 3 of 4 (233 Views)

Re: 'End' substiture

08-08-2013 03:28 PM in reply to: junoj

You could also simply employ code logic which would preclude the processing of additional code if the appropriate test expression(s) are not satisfied.



"Potential has a shelf life." - Margaret Atwood


Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security

Distinguished Contributor
junoj
Posts: 116
Registered: ‎02-26-2009
Message 4 of 4 (166 Views)

Re: 'End' substiture

08-10-2013 05:50 PM in reply to: junoj

Thank you both very much. :smileyvery-happy:

Announcements
Autodesk Alert | We are currently working on restoring Previous Version License request access in the Autodesk Subscription Center. If you are a subscription customer and would like to request a Previous Version License, please use this link as a temporary workaround. We apologize for the inconvenience and thank you for your patience.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.