HI,
What I’d like to ask is simply how I can create a custom method with XOJO that I can pass parameters to and get a result.
I’ve seen that it’s possible to create an Event in which I can specify the parameters and the output variable, but I can’t write the code inside.
you can also use a class/object as methods argument, this object is always by reference.
a class can store data, have functionality and encapsulate.
you can hold an class object also in a property of a window, but its by default nil and have to be created in the openinh event once with the new keyword.