Location of modules

FFMan

Member
Licensed User
Longtime User
When i add a new module to a project i naturally may then want to use the module in anothe project so i don't want it to be stored in nthe folder with a particular project. i would prefer to have a modules folder and keep my general purpose modules in there and add them as required.

How can i control where modules are created and loaded from in the ide ?

thanks
 

Jost aus Soest

Active Member
Licensed User
Longtime User
re-using modules

I've really hoped, that "Add Existing Module" would make a reference (link) to the oiginal module, and not only a copy.:BangHead:

But how can I re-use a module in different projects without typing/copying changed code blocks?
:sign0163:
 
Upvote 0

FFMan

Member
Licensed User
Longtime User
> Though I think that in most cases it is better to have a separate copy and not (silently) break other projects.

yes i understand what you are saying - zbasic allows modules to be located in any folder and it is possible to break other projects, but in my view this risk is easier to manage than multiple copies of modules.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I would also prefer having reusable modules in a specific folder and not multiple copies.
I had used this feature in VB for many years without any problem and found it much more useful than the need to manage the copies after a change.

Best regards.
 
Upvote 0

Jost aus Soest

Active Member
Licensed User
Longtime User
this risk is easier to manage than multiple copies of modules.

Good point!

I'm also used to reuse moduls in a lot of projects (for me this is at least valid for VB, Java, PHP): When I improve a reused module in one project, all my other projects benefit automatically from the changes.

Maybe the IDE could ask before copying or referencing an module?
 
Upvote 0
Top