Forum Discussion
hlalumiere
14 years agoRegular Contributor
If the other unit is not included via USEUNIT, the variable does not exist in the running unit's context. This is pretty much how every programming language behaves. Think of each unit as a self contained class, not a module or static class. If you need a truly global variable use Project.Variables.
Are you sure the object instance didn't just crash, or unexpectedly disposed, with the variable now pointing to Nothing?
Are you sure the object instance didn't just crash, or unexpectedly disposed, with the variable now pointing to Nothing?