Thanks for replies.
I assumed there wouldnt be aproblem using these, but wanted to confirm it to be sure Im not going to suddenly encounter some random behavior when using these.
One more question. Not that I plan to do this even, but just from curiosity of understanding more About Hollywood behavior.
But, for example in MakeButton one of the arguments is Function, and I can make that Function when I am making that button, as example:
Code: Select all
MakeButton(#SIMPLEBUTTON, 1, 100, 100, 200, 200, {OnMouseOut= Function() Return(1+2)})
Now this will effectively make Function being held there.
However, there are two possibilities to use a function.
That I can either have:
Code: Select all
Function Example()
A = 1 + 2
Return(A)
EndFunction
And this would simply return the RESULT of a Function, in this case number 3. That B would be holding number 3.
But if I instead:
In which case B will be holding the Function itself instead of the answer.
Now To get back to MakeButton and to compare it to this example.
When I use Function() Return(1+2) EndFunction) in MakeButton, then effectively this is same as B holding the Function instead of the result.
But what if I instead of wanting to make a Function when making MakeButton, would instead just want the result (3) then is this doable at all?
I mean, of course I can make that Function outside first and use it there, but what if I for some reason would want to make a function right there from which only result would be saved, is that doable?