|
-
Jan 11th, 2000, 10:15 PM
#1
What is the best way to re-use code; put it into a module or a class module or as I read on here a template? I don't use VB more because I get frustrated when starting a new project because I seem to have to start from scratch everytime, because I can't find the code I sweated over previously.
-
Jan 11th, 2000, 10:43 PM
#2
Hyperactive Member
What I do is seperate most of my code into functions, at least the more common stuff. I'll put a lot of the common declarations, global variables and these functions into a couple modules (.bas) fies. Usually one called Global and one called Common. Then I can just load these into what ever project I create. It definetly makes it easier. I think it's a personal preference thing though. I don't use classes at all so I don't know whether that would be better. Hope this helps.
-
Jan 12th, 2000, 12:47 PM
#3
Hyperactive Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|