I save the value of a variable using vars.putObject(); How to save it globally?

    1 answer 1

    According to Functions and Variables

    Properties are not the same as variables. Variables are local to a thread; properties need to be referenced using the __P or __property function.

    So instead of vars use the vars variable, which is essentially a java.util.Properties instance.

     props.put("foo", 123); 

    Alternative - __setProperty () function

    You can props.get("foo") value either by props.get("foo") or by using the __P () function

    • props.put - save the object? - Shpakov.NN