I found this great article (https://www.b4x.com/android/forum/threads/iif.15363/#post-161305) that shows how to write a custom IIf() function and I'm using it by putting the function at the bottom of each of my modules. Is there a way to make this function (or any other custom function) available to all modules? Perhaps, a simple example...
You can put the method in a CODE Module if it does not change the Activity. For ex name it "fnc.bas"
You then can reference fnc.MyFunction in all your Activities.