In languages other than B4A (eg: Swift, Obj-C, Java), a function / method declared as Private is not visible from outside the class it's declared in. For the function to be visible, it has to be declared as Public. In B4A the same applies to classes, but not modules it seems.
I always thought that to call a sub in one module from another using CallSub, the sub being called had to be declared as Public - however by accident I discovered today that I was calling a sub declared as Private from another sub using CallSub.
Is this intended behavior?
- Colin.
I always thought that to call a sub in one module from another using CallSub, the sub being called had to be declared as Public - however by accident I discovered today that I was calling a sub declared as Private from another sub using CallSub.
Is this intended behavior?
- Colin.
Last edited: