.NET

Reply
Distinguished Contributor
116 Posts
1 Kudo
Registered: ‎02-26-2009
Post 1 of 4
Accepted Solution

'End' substiture

263 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*
1,286 Posts
37 Kudos
Registered: ‎06-21-2004
Post 2 of 4

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
787 Posts
80 Kudos
Registered: ‎02-25-2013
Post 3 of 4

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


AutoCAD® 2014, and Civil 3D® 2014 Certified Professional ~ Autodesk® Authorized Developer

Distinguished Contributor
116 Posts
1 Kudo
Registered: ‎02-26-2009
Post 4 of 4

Re: 'End' substiture

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

Thank you both very much. :smileyvery-happy:

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!