Scope/visibility of structure

In a module ‘Globals’ I defined a Structure called ‘Session’. I want this structure to be visible through the application at a certain point. In ‘Globals’ I have also defined a property ‘mySession’ as type ‘Session’.

In code (button.action) I write

mySession = new Session

results in a compiler error ‘No class with this name’ though the autocomplete shows every field of the structure… what do I do wrong here?

Solved. I don’t have to declare a ‘mySession = new Session’. I can use i.e. mySession.Name immediately.