Hi there
I have been building a program separately and testing the code in sections. Which is fine as it works individually. However two of the classes are designed to share variables. The idea is the first class generates a partcile and then scans through a list of gridCells. It then either creates gridcell and updates itself, or updates itself and then the gridcell if one already exists.
I think the error comes from the compiler not knowing which to compile first and so doesn't compile as one of the classes can't access the other that hasn't been compiled yet.
Is there a way to specify which one it should compile first? Or do I need some kind of middle class that would first compile the particle and then the grid second, allowing them to then access each other as they would have then both compiled individually?
Many thanks