W wl Well-Known Member Licensed User Longtime User Nov 19, 2012 #1 Hello all, As a C# developper I noticed I am using function/action/lmabda parameters more and more. In short: it allows me to pass a reference to a method as a parameter to a method, which allows for some very compact and generic code. Is there anyhting similar that can be used in B4A ? Or any plans on implementing this ? Thanks
Hello all, As a C# developper I noticed I am using function/action/lmabda parameters more and more. In short: it allows me to pass a reference to a method as a parameter to a method, which allows for some very compact and generic code. Is there anyhting similar that can be used in B4A ? Or any plans on implementing this ? Thanks
Erel B4X founder Staff member Licensed User Longtime User Nov 20, 2012 #2 You can use CallSub or CallSubDelayed to pass a reference to a sub. Upvote 0
W wl Well-Known Member Licensed User Longtime User Nov 20, 2012 #3 Thanks Erel, forgot I could use this... (although it is prone to bugs because of possible typos in the names of the methods to be executed) Upvote 0
Thanks Erel, forgot I could use this... (although it is prone to bugs because of possible typos in the names of the methods to be executed)