public vs. private

  • Thread starter Thread starter Curtis
  • Start date Start date
C

Curtis

We are loading multiple instances of a mdichild. Some fairly intensive code
that does stuff. Is it more efficient to put that code in a module as a
public procedure or leave it in the form?
 
Curtis said:
We are loading multiple instances of a mdichild. Some fairly intensive code
that does stuff. Is it more efficient to put that code in a module as a
public procedure or leave it in the form?

Removal of code is an optimization technique. You can imagine that if you
have 1000 lines of identical code in 10 forms, you would see a significant
reduction in the load time and size of your EXE if you reduce those 10,000
lines to one block of 1000 in a module....

LFS
 

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