Android Question Passing parameters to click event not possible

kostefar

Active Member
Licensed User
Longtime User
Dear All,

I hope this is the right forum to ask:

If I want certain values, in this case it´s of type object, to be available in a sub that I´m calling, it´s pretty easily done by defining the incoming in

Sub Called (parameters as object)

But in my case, I have some data that need to be passed to a server upon clicking a button. But I cannot pass the object data by for instance button_click (parameters as object) since the button is not called in the same way as a Sub, where you´d tell which parameters should be passed upon calling it.
The only way for me to do the trick is to define a global variant which stores the value nomatter where I am in the application, but that´s not the most elegant way of doing things.

Is there a smart way of doing this?

Thanks in advance for your help!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…