Call a method within a class from outside the class

I have a class that allows for the creation/addition of instances to data arrays. I need to call a method that is within the class from a button that is outside the class. I’m sure this is easy to do, but I have found no solution. The button calls the method.

Thanks,

Add the Class as a Property of your window, create a New instance of the Property in the window Opening event, then call the class Method from the window (outside the class).

Consider refactoring to make your utility functions more readily available across classes, windows, etc.