This is surely really trivial and I am embarrassed to ask, but I must be missing something and just cant get it to work (new to x++).
In class A I read some data from a external source. I want to use this data in class B, so I try to save the variable in the class declaration in class A.
However class A then makes a method call to class C (I follow it in the debugger) and when it later jumps back to class A the saved variable is gone (0). So when A then makes the call to class B where I want the variable to be sent along, it is no longer the value that was initially read in.
The debugger goes something like this:
Class A (read variable) > class C > class A (variable value gone) > class B (cant find the initial read value).
How can I reach or send the data read by class A in the class of B (when it has to go to class C before class B)?