We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Move functions to a different tab

Home Forums Puzzles Move functions to a different tab

  • This topic has 10 replies, 3 voices, and was last updated 4 months ago by kdv.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #75959
    studiogijs
    Customer

    I want to organize my code better and notice that I cannot move functions to a different tab, because cutting a function deletes all the calls to it as well. Is there a way around this?

    #75960
    kdv
    Participant

    Is there a way around this?

    In puzzles – no. You can move your procedures in visual_logic.xml. It’s a little complicated task but with the help of Notepad++ it’s much easier…

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #75964
    coye
    Participant

    Maybe package them into a procedure and then use it in another tab? https://soft8soft.com/docs/manual/en/puzzles/Procedures.html

    #75967
    studiogijs
    Customer

    Packaging them in another procedure doesn’t solve much, you will still need to find the procedure on the page where it resides. And finding stuff in puzzles is one of the weakest parts of it, because it doesn’t scroll to the things you look for.

    I’ll try the notepad++ solution, thanks

    #75972
    kdv
    Participant

    In puzzles – no.

    Correction. There is one simple workaround. Replace all procedure calls this way and they won’t disappear when you move your procedures with Ctrl+X/Ctrl+V to another tab.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #75979
    studiogijs
    Customer

    thanks, will do that in future projects. I looked into the notepad++ solution, but that seemed tedious and tricky.
    Your solution still means I have to carefully look where the procedures are called.

    #75980
    kdv
    Participant

    still means I have to carefully look where the procedures are called.

    Actually, nope.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #75981
    studiogijs
    Customer

    well, not if I do that from the get go, but if I have to replace all calls in my current solution, it still means I have to make sure I replace them all.

    #75982
    kdv
    Participant

    https://drive.google.com/file/…/view?usp=sharing

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #75983
    studiogijs
    Customer

    thanks for sharing the video, in that case moving the function seems quite feasible and faster than replacing the function calls.

    But the phrase you quoted refers to the second workaround, not the first. ;-)

    #75984
    kdv
    Participant

    Agree. The second workaround is mainly for future projects. Replacing all procedure calls could take a lot of time and attention )))

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.