Passing a reference to a method
Posted: Fri May 31, 2019 1:21 pm
Hi all,
I have never used this in LANSA, but I have used this technique in PHP and JavaScript.
It's sometimes called an anonymous function, or a closure, or a callback.
Basically, I would like to be able to pass a piece of code or a reference to a piece of code into a reuseable component method. And have that code run by the reusable component (maybe many times).
Does anyone know if this is possible in VL?
Regards
Andy
I have never used this in LANSA, but I have used this technique in PHP and JavaScript.
It's sometimes called an anonymous function, or a closure, or a callback.
Basically, I would like to be able to pass a piece of code or a reference to a piece of code into a reuseable component method. And have that code run by the reusable component (maybe many times).
Does anyone know if this is possible in VL?
Regards
Andy