How to break Procedure ?!

Discussion in 'AutoCAD' started by Majid, Dec 14, 2004.

  1. Majid

    Majid Guest

    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
     
    Majid, Dec 14, 2004
    #1
  2. Majid

    agruno Guest

    You may use obj.explode command
    And you get selectionset of exploded elements
     
    agruno, Dec 14, 2004
    #2
  3. Majid

    Majid Guest

    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 !!!
     
    Majid, Dec 14, 2004
    #3
  4. 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


    smaller procedures....PLZ help.
     
    John Goodfellow, Dec 14, 2004
    #4
  5. Majid

    DRW1975 Guest

    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
     
    DRW1975, Dec 15, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.