How to break Procedure ?!

How to break Procedure ?!

Anonymous
Not applicable
313 Views
4 Replies
Message 1 of 5

How to break Procedure ?!

Anonymous
Not applicable
Hi guys,
I'm a begginer and I'm learning myself by only AutoCAD help file 😉
I get Procedure too large error, but I don't know how to break it too smaller procedures....PLZ help.
Thanks
0 Likes
314 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
You may use obj.explode command
And you get selectionset of exploded elements
0 Likes
Message 3 of 5

Anonymous
Not applicable
Hi,
No, I mean I wrote a Sub procedure that is too large (more than 64k) and I want to break it to smaller parts and I don't how !!!
0 Likes
Message 4 of 5

Anonymous
Not applicable
You need to create other subordinate procedures, move some of your code into these, and call them from the main procedure. The subordinate procedures are usually organized to perform some specific tasks within your program (e.g. count block references of a particular name). Have a look at the following sections in the Visual Basic Help file. Visual Basic Conceptual Topics Writing a Function Procedure Writing a Sub Procedure Calling Sub and Function Procedures Visual Basic How-To Topics Create a Procedure -- John Goodfellow irtfnm use john at goodfellowassoc dot com "Majid" wrote in message news:5781686.1103007330197.JavaMail.jive@jiveforum2.autodesk.com... > Hi guys, > I'm a begginer and I'm learning myself by only AutoCAD help file ;) > I get Procedure too large error, but I don't know how to break it too smaller procedures....PLZ help. > Thanks
0 Likes
Message 5 of 5

Anonymous
Not applicable
I never realized that there was a limit on the length (size) of a procedure...

Thanks for this post, as I will be aware not to create any procedure that is excessively long.

DRW
0 Likes