- Legacy ID
- No Bug
- Feature Request
- execute this:
_control setVariable ["MyValueName", _value];
diag_log text format ["%1, value = %2, control value = %3", _control, _value, _control getVariable "MyValueName"];
- check RPT file, it will say:
Control #..., value = ..., control value = <null>
Control #..., value = ..., control value = ...
Confirmed. It is supposed to work:
"b:NAMESPACE setvariable ARRAY"
"b:CONTROL setvariable ARRAY" <= here
"b:OBJECT setvariable ARRAY"
"b:GROUP setvariable ARRAY"
"b:TEAM_MEMBER setvariable ARRAY"
"b:TASK setvariable ARRAY"
"b:LOCATION setvariable ARRAY"
But it doesnt
Why do you think this is not a bug? This feature is documented and very useful because one can assign value to a control instance so that value lifetime matches control's lifetime (like RAII). What is workaround for this issue? Globals? Monads?