can I import a method from another solution?

Is there any easy (quick) way to import a method from another solution?
At the moment I close solutionA.
Open solutionB
Open the Editor
Select all in the method
Copy
close solutionb
open solutiona
open editor
paste…
seems a long winded process.
Is there any easier way?Al

alb:
Is there any easy (quick) way to import a method from another solution?
At the moment I close solutionA.
Open solutionB
Open the Editor
Select all in the method
Copy
close solutionb
open solutiona
open editor
paste…
seems a long winded process.
Is there any easier way?Al

Set the source solution as a module of solutionB, then duplicate the method in the Editor

if the method in the source solution is global…and you want it in the target solution with the sanme name. Yes you can cut paste, rename, open close, add as module, take away, etc but it a really clumsy.
I have seen a few other people askt eh same thing.
Why cant servoy have an ‘import from solution’ function where you just import in methods and/or forms, from an existing solution - ideally mutliple mthods at once.
That would make it much easier to pull in code that you already have.
Al.

alb:
if the method in the source solution is global…and you want it in the target solution with the sanme name. Yes you can cut paste, rename, open close, add as module, take away, etc but it a really clumsy.
I have seen a few other people askt eh same thing.
Why cant servoy have an ‘import from solution’ function where you just import in methods and/or forms, from an existing solution - ideally mutliple mthods at once.
That would make it much easier to pull in code that you already have.
Al.

I agree that importing methods would be a very nice add-on.

Anyway, if the method is not a global, add the solution and duplicate the method is not so clumsy.
If it’s a global and the original name has to be preserved, it should be worth considering to build a module acting as a library. This way, your “general purpose” global methods are immediately available for every solution, without having to move them.