global variables "on the fly"

Hi, sometimes I created global variables “on the fly”, simply declaring them, but in Servoy 6 I receive this warning:

The property globalVar is undefined for the type Globals<Solution>

So do I have to create that variable in solution explorer?

Thanks

I’d say it is what it is: a warning. If you want to get rid of it, create a global.

So creating global variables on the fly is (now) a bad practice, isn’t it?

log-out:
So creating global variables on the fly is (now) a bad practice, isn’t it?

It has always been a bad practice, but at least now you get a warning about it ;)