I'm sure this is elementary but I haven't figured it out yet.
I have a simple program, in it a Class. In the MainWindow, I've added a property TheClass of type Class, scope Public. This does not seem accessible anywhere (run time exception NilObject). In a button action event, I cannot access it unless I declare it with Var TheClass New Class, then it works - but only in that button action after which is goes out of scope as expected. I want to use TheClass throughout the program. How do I do that and why?
I'd have thought the adding of it as a property at the MainWindow level would have instantiated it, and as it is public it would be available.