Star basic: passing sub/function as parameter to other sub/function

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

You will not receive confirmation. The fact is that in StarBasic it can be done.

Try this MacroAsParameter.ods and read this and this

Fantastic !! Very thanks !!!

I vaguely knew macro uri, but I never thought it could be applied to this problem.

For a LO macro programmer is an important help

Thank you so much again