I am trying to get deeper into scripting but I want to improve the noob way i do it until now.
I have defined a variable --- var mycomp in a function.
then I want to use that var mycomp to do more things in a second function.
Somehow -- return mycomp; wont work. Should out it in the parameters of the second function or first? or get that var mycomp in a special way?
I know this is basic, but I would be grateful to learn this now than later.
Sebastian - where exactly return mycomp doesn't work? Could you share the following:
1. How do you call the function 1 in 'main area' of your script?
2. How do you defined retrieved variable from function 1?