Order of Functions and Subs in Class

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

Hi All

Does anyone know if there is a standard format where subs and functions
should be placed in a class. I always put them at the very end of my class
except my constructor (subs first then function)? For example below is my
order


1. Constructor Sub New1
2. Constructor Sub New2
2. Property 1
3. Property 2
4. Property 3...

5. Sub 1
6. Sub 2
7. Function 1
8. Function 2


Regards,
Sam
 
Sam said:
Hi All

Does anyone know if there is a standard format where subs and functions
should be placed in a class. I always put them at the very end of my class
except my constructor (subs first then function)? For example below is my
order


fwiw, Even though I have an Add-in that allows me to
sort/re-arrange/whatever I want to procedures, I let the IDE place my
procedure 'stubs'... which is yet another reason that I want the 'single
procedure view' functionality VB5/6 gave me when I wanted, back. They're
always in alphabetical order in the dropdowns ;-)

Other than the bare minimum requirements for framework support (which I
don't know... probably those constructors), it should make zero difference
what physical order anything is in (it had better not anyway <g>)
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top