Bug? SetField / GetField & JavaObject

stevel05

Expert
Licensed User
Longtime User
This is not really a bug, but it's missing form the documentation that using SetField /GetField with javaobject on a variable in an activity or class requires the variable name to be lowercase and prefixed with an underscore.

This case should probably be dealt with by creating a sub in the module to update the variable, but just for completeness.
 
Last edited:

stevel05

Expert
Licensed User
Longtime User
In a class I had a reference to the calling module as an object so I could create a callback, but couldn't access the variables directly and I wouldn't necessarily know the type of the calling module. (Activity or class or which class). In the end I created a sub in the calling module(s) to update it which seems cleaner.
 
Top