How to break Procedure ?!
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
How to break Procedure ?!

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
Majid
Guest





Posted: Tue Dec 14, 2004 11:54 am    Post subject: How to break Procedure ?! Reply with 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
agruno
Guest





Posted: Tue Dec 14, 2004 12:41 pm    Post subject: Re: How to break Procedure ?! Reply with quote

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 ?! Reply with quote

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 ?! Reply with quote

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 ?! Reply with quote

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
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB