access global from other object

Halo Is it possible to access object global variable from another object? I’ve set in one object global boolean “Option” and into source code “Option := true”. I need to know in the other object the status of this “Option” Is there some tricky way to do that?

Yep … In the Object where the global variable is defined, create a function that return the value of the global variable. Then you can call the function from outside …

another way… create new codeunit. and define a propertie. Single instance = yes. declare new var. make new function - GetVar. and SetVar. You can control the value of your global var. via this codeunit function.