|
-
Dec 1st, 2003, 11:21 AM
#1
Thread Starter
Member
Multiple projects as one...
Im looking to develop a range of small to meduim applications, and I want them to be all part of one program... In the past I have just developed these under the same project and had to try and keep tidy with form/varible/etc naming, but even still it got messy and made it much harder to add new projects into it.
The alternative way is just to code them all seperatly and make a small menu program (or just use shortcuts), but I much rather keep the programs together...
Is there a way I can keep each project seperate yet still have them as one program? :/
tis a pretty silly question but I have no ideas at the moment
-
Dec 1st, 2003, 11:25 AM
#2
I don't think you can do it. Each project will make its own compiled file.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Dec 1st, 2003, 11:27 AM
#3
Thread Starter
Member
Originally posted by crptcblade
I don't think you can do it. Each project will make its own compiled file.
Yea I know that, speically with group projects etc... im sorta looking for a compremise somewhere at least
-
Dec 1st, 2003, 11:28 AM
#4
Fanatic Member
In our company we have one application used by many people.
We use the menus to restrict access to different parts of the app.
so
Code:
if userid = "Jo" then
mnu1.visible = false
mnu2.visible = false
endif
We actually store all this in a database. and read it in when the person logs in.
The one thing you have to watch out for is there has to be at least one child menu item visible. You cannot make all children menu item of a parent not visible. It is better to make the parents not visible where possible.
-
Dec 1st, 2003, 11:30 AM
#5
Thread Starter
Member
Originally posted by davidrobin
In our company we have one application used by many people.
We use the menus to restrict access to different parts of the app.
so
Code:
if userid = "Jo" then
mnu1.visible = false
mnu2.visible = false
endif
We actually store all this in a database. and read it in when the person logs in.
The one thing you have to watch out for is there has to be at least one child menu item visible. You cannot make all children menu item of a parent not visible. It is better to make the parents not visible where possible.
Thats still misses the problem though, the acctual code... it will all still be in there... and i dont want to restrict anything for anyone.
When I say small to medium, i mean small as in like 30 odd modules/forms, not 5 lines and half a form.
-
Dec 1st, 2003, 11:36 AM
#6
How about separate code modules for each program? That would have the advantage that code modules are not loaded until they are actually needed.
-
Dec 1st, 2003, 11:39 AM
#7
Fanatic Member
This is going to be a stupid question but how do you load code modules?
-
Dec 1st, 2003, 11:42 AM
#8
You don't. VB loads the code module the first time any code in it is needed.
-
Dec 1st, 2003, 11:43 AM
#9
Thread Starter
Member
Originally posted by MartinLiss
How about separate code modules for each program? That would have the advantage that code modules are not loaded until they are actually needed.
Thats the approach I took last time I did this type of project, naturally I seperated the forms and modules (prefixed them so I knew which project they belonged too) with a few modules for global usage, but you get into problems with varibles across the project when you dont want them to be , you can make them public to a single module/form but not to a group of forms only else global
-
Dec 1st, 2003, 12:00 PM
#10
Global variables are not the best thing to use in any case. You could replace them with properties in a class or even custom properties of a form.
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
|