| Author |
Message |
Majid
Guest
|
Posted:
Tue Dec 14, 2004 11:54 am Post subject:
How to break Procedure ?! |
|
|
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
|
|
| Back to top |
|
 |
agruno
Guest
|
Posted:
Tue Dec 14, 2004 12:41 pm Post subject:
Re: How to break Procedure ?! |
|
|
You may use obj.explode command
And you get selectionset of exploded elements |
|
| Back to top |
|
 |
Majid
Guest
|
Posted:
Tue Dec 14, 2004 1:10 pm Post subject:
Re: How to break Procedure ?! |
|
|
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 !!!
|
|
| Back to top |
|
 |
John Goodfellow
Guest
|
Posted:
Tue Dec 14, 2004 7:18 pm Post subject:
Re: How to break Procedure ?! |
|
|
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" <nospam@address.withheld> wrote in message
news:5781686.1103007330197.JavaMail.jive@jiveforum2.autodesk.com...
| Quote: | 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 |
|
|
| Back to top |
|
 |
DRW1975
Guest
|
Posted:
Wed Dec 15, 2004 7:06 pm Post subject:
Re: How to break Procedure ?! |
|
|
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 |
|
| Back to top |
|
 |
|
|
|
|