-
Procedure to large
I have created a VB program runs within a CAD program. The code is now that long that I am getting a "Procedure to large" error when I go to run it. I know I need to divide it into sections.
Being a novice at VB I am not sure how to do this.
Can someone please help.
-
Re: Procedure to large
How long is it? Is it all in one form?
You could put each section into a new module, but I don't see why you'd need to, unliess your code is very large.
-
Re: Procedure to large
Yes it is in one form and the code is very large.
I hope you can help.
-
Re: Procedure to large
-
Re: Procedure to large
Add a code module to your program and break out pieces of your code into one or more Subs or Functions that you can call from the form.