Merge modules

  1. ‹ Older
  2. last week

    @Emile S And the answer is yes: use two clicks and Copy.

    Well, this do not work in my IDE

  3. Beatrix W

    Jul 9 Pre-Release Testers Europe (Germany)

    I just tried again with drag-and-drop and it worked fine. The result was a module2 inside module1. After making the modules external this didn't work anymore because nested modules aren't supported for external items.

  4. In my IDE

    • Make a new desktop project
    • add two modules (module1 and module2)
    • add a property to module2 (untitled as integer)

    then try to add module2 INTO module 1

    Dragging does not work
    Copy after selecting module2 from Edit menu
    Then select module1 and paste:
    You get a new module at app level named module22

  5. Tim S

    Jul 9 Canterbury, UK

    @Enric H In my IDE

    • Make a new desktop project
    • add two modules (module1 and module2)
    • add a property to module2 (untitled as integer)

    then try to add module2 INTO module 1

    Dragging does not work

    Works for me. You have to be careful that, when you do the drop, the mouse pointer is on Module1 and that a blue outline box surrounds Module1. Move the mouse very slowly.

  6. Edited last week

    @Tim S Works for me. You have to be careful that, when you do the drop, the mouse pointer is on Module1 and that a blue outline box surrounds Module1. Move the mouse very slowly.

    Probably I've something wrong in my IDE. The same procedure, you describe, works fine if I insert a class into the module, the outline box around module1 appears and the class is moved inside, but not when I do the same with a module.

    Even more The procedure works if I insert an empty module INTO another, but not if the module has any item,

  7. Emile S

    Jul 9 Europe (France, Strasbourg)

    Reinstall Xojo ?

  8. @Emile S Reinstall Xojo ?

    Already done but the same.
    Are someone using Mojave 10.14.5 and Xojo 2019 r1.1 ?

    Please try

    • Make a new desktop project
    • add two modules (module1 and module2)
    • now you are able to insert (dragging) module2 into module1 (the outline box around module1 appears) don't do it
    • add a property to module2 (untitled as integer)
    • then try to add module2 INTO module 1

    Dragging does not work, copy and paste either.

  9. Beatrix W

    Jul 9 Pre-Release Testers Europe (Germany)
    Edited last week

    Make a video of what you tried with drag-and-drop and upload it.

  10. @Beatrix W Make a video of what you tried with drag-and-drop and upload it.

    ok, but how do you post a video here?, I tried with dropbox to place a image and do not work

  11. Alberto D

    Jul 9 Pre-Release Testers
    Edited last week

    @Enric H ok, but how do you post a video here?, I tried with dropbox to place a image and do not work

    From https://forum.xojo.com/38560-post-formatting-tips

    Embed Image

    Displays an inline image. This needs to be a direct link to an image file. Click the "image" button in the toolbar and then replace the URL.

    If you are linking from Dropbox, be sure to use a "public link" and remove the "?dl=0" and replace it with "?raw=1". Images from Flicker and other picture services that do not have a direct link do not display. Imgur is a service that seems to work well.

    I guess the same with a dropbox video, I think I have seen Norman posted a video from dropbox in other thread.

  12. -image-

  13. Tim S

    Jul 9 Canterbury, UK

    @Enric H Already done but the same.
    Are someone using Mojave 10.14.5 and Xojo 2019 r1.1 ?

    Please try

    • Make a new desktop project
    • add two modules (module1 and module2)
    • now you are able to insert (dragging) module2 into module1 (the outline box around module1 appears) don't do it
    • add a property to module2 (untitled as integer)
    • then try to add module2 INTO module 1

    Dragging does not work, copy and paste either.

    Yes, I agree this does not seem to work under 10.14.5 (on my laptop). Doing it under 10.13.6 worked OK.

  14. @Tim S Yes, I agree this does not seem to work under 10.14.5 (on my laptop). Doing it under 10.13.6 worked OK.

    Oh at last a light, I was feeling like "The fool on the hill".

  15. Alberto D

    Jul 9 Pre-Release Testers

    @Tim S Yes, I agree this does not seem to work under 10.14.5 (on my laptop). Doing it under 10.13.6 worked OK.

    Weird, I can't reproduce it with 10.12.6 I see the exact same issue that Enric. Even found a problem when dragging out and undo, recording right now.

  16. Alberto D

    Jul 9 Pre-Release Testers
    Edited last week

    This is what I did to crash Xojo:

    • new project
    • add module1
    • selecting module1 insert another module, module 2 will be a sub module of module 1
    • add a property to module 2
    • drag module 2 outside of module 1
    • undo the drag and drop

    If you don't add the property to module 2, you can drag module 2 out and undo without a crash.

    Feedback Case #56330 interesting that Feedback automatically added the title and message: can't add an item to an illegal container.

    It looks like for some reason adding a Property to a sub-module will make illegal to drop that module into another module even if we use Undo (Undo just force the action that we can't do it manually).

    Edit: Maybe is already reported, will try to search with that generic title.

  17. Thanks Alberto, now I know it's no my fault.

  18. Alberto D

    Jul 9 Pre-Release Testers
    Edited last week

    Enric, after reading Feedback Case #36886 it looks like the problem is the Global scope of the property, if it is changed to Private, then there is no problem dragging/dropping or even Undo.

    Anyway, the IDE should not crash.

    Edit: I guess that is why Tim could do it with 10.13.6, in that machine I bet when a property is added it start as Private and on the 10.14.5 machine it is added as Global

  19. So a submodule can't have globals properties?, it's a bug or is by design?

  20. Alberto D

    Jul 9 Pre-Release Testers
    Edited last week

    @Enric H So a submodule can't have globals properties?, it's a bug or is by design?

    I guess by design. This is what Norman commented back in 2014:

    Moving a module that contains global properties inside another module would mean those properties can no longer be global

    I added information to my FB case, in my case the crash problem is that when I added a Property to Module 2 inside Module 1, the only 2 options are Protected and Private, and even when it say the Property is Protected there is no indication on the left panel. Once I clicked the scope and selected Protected again, then the left panel changed and a yellow indicator showed up, then I was able to drag off the Module 1 and Undo without a crash.

  21. Norman P

    Jul 9 Pre-Release Testers, Xojo Pro www.great-white-software.com/b...

    @Enric H So a submodule can't have globals properties?, it's a bug or is by design?

    No
    By design for about 15 years

or Sign Up to reply!