Using a module

Greetings,

I am trying to redimension a property that is part of a class that has several 2d arrayed properties. I need to use these data among several methods. I have assigned a module property of type of class that has the property arrays. A method that redims the array fails. When I type in the line that does the redimensioning xojo properly anticipates the dot pathway. Is it helpful to put the class in the module?

Thanks for your advice.

Screenshot 2026-05-28 at 11.56.06 PM

Are you instantiating the object anywhere? Something like Optics.Perpendicular = New classOpticsArray. If not then you’re probably getting a NilObjectException when trying to access the properties of the object.

More details about how it fails (like error message, etc.) would be really helpfull. :wink:

1 Like

It would be optics = new classOpticsArray.