Is it possible to pass sub /function A as parameter to other sub /function B as object to be reused in the function B called?
Eg:
' MAIN PROGRAM
display(dum) ' pass dum to display per reused dum in display
' FUNCTION USED
function display (i)
msgbox (i)
end function
function dum (oFn)
oFN (0)
oFN (1)
end function
It’s probably possible using javascript or python (but that’s not my goal)
I believe that in star basic it cannot be done (in javascript yes, for example): calling a function B passing a function/sub A leads to execution of A in calling.
But I still ask for confirmation