B4J Question Curious

Daestrum

Expert
Licensed User
Longtime User
Why doesn't 'Me' have .RunMethod(..) as an option.

B4X:
Me.RunMethod("someMethod",Null)

instead of
B4X:
Dim jo As JavaObject = Me
jo.RunMethod(..)
or
B4X:
(Me).As(JavaObject).RunMethod(..)

Just curious.
 

aeric

Expert
Licensed User
Longtime User
Before Me is cast to JavaObject, it is an Object.
Object has no RunMethod.
In different places, it is different.
My 2 cents.

1705321137737.png
 
Upvote 1
Top