Curiosity getting the best of me (Style Question)
I was recently changing a toy program to use a config file for it's database access information and removed the string assignments for my path from my new subroutine. The assignments were moved to the load routine so that the user could be queried about the setup and the program could choose the path and connection info from the config file. Thats not the question though. Sorry, just thought that some background would be helpful.
Anyway the question is what's the difference and the preferred usage of the new and form load routines?
I have always put my assignment statements into the new based on which new it is and have always launched login form, messages, info gatherers, etc from load? Any binding of data from DB's is also run in load.
I know there are different reasons and styles but just looking for some your thoughts.
Thanks,
Risu
|