I feel like a total noob that I cant figure this out. Ive been using the xojo and so many other versioning things for so long but in xojo Ive never had the need to share a file between 2 projects. Ive got a module with a large number of constants in it for data keys necessary for the communication between 2 apps. For years Ive just cut and pasted any changes or additions into both apps. Im facing a large number of additions now and I want the module to be the same in both projects. As if I was including the same header file into both of them so that changes in one will be reflected in the other.
The make external feature seems to be what I want? I can make the module external and save it from one program, but how do I import it as external in the other? If I drag it into the second project its imported just once and kept locally. If I go to make that one external then it wants to save it again.
Is that how to do it? Just save it over the other and then both programs will treat it as an external item?
This seems such a basic thing, yet Ive never done it in Xojo!
[quote=220498:@Massimo Valle]On Mac, just drag the module over the project holding OPTION+CMD, the cursor will turn to an alias style arrow and the module is added as external.
Be warned with external modules to not work at the same time on both project using it. Bad things can happen
Also with external modules you must save the project in XML or Binary only.[/quote]
The MODULE has to be XML or Binary - not the project
You can use external in VCP projects
This used to be true in older versions of REALbasic, but is not any longer: I’ve been working with a client/server app with shared external XML xojo modules, classes, and windows, and can edit both projects in the IDE simultaneously. I’ve not seen any issues.
[quote=220509:@Michael Diehr]This used to be true in older versions of REALbasic, but is not any longer: I’ve been working with a client/server app with shared external XML xojo modules, classes, and windows, and can edit both projects in the IDE simultaneously. I’ve not seen any issues.
Can you clarify what you are seeing?[/quote]
Well, I stopped doing this time ago due to incompatibility with our SDC workflow and namespaces (nested modules) which are also not supported.
Maybe now things are better, glad to see they improved.
Again: <https://xojo.com/issue/8265>
Unlikely to happen = give norm 6 months to do NO work on anything else in the IDE (no bug fixes etc) to craft a new file format that makes the issues with VCP, Binary & XML go away
the cases max mentions I’d love to solve BUT there are a bunch of related ones that if we do anything we really should fix them all or at least design things so we can
You can also Copy/Paste the original ‘alias’ module from the original Xojo project into the second (or third ) project. I find this faster than finding the original external item then holding down special keys as I drag it into the wrong place!