Hey Guys
I try to program a genetic Algo. Generating the Population and mutate/breed them already works fine, as long as i define the class properties as constant Integers. My goal is now to deliver some of these properties by a Userform, and that's where i fail, because the Array i try to deliver is always empty, when the userform finishes.
That's where the 50 classes of the population are initiated
This is the start of the class_initialize, where i try to assign the limits over the Module Types userform, in which the user can put in the different kind of Modules for each of the Devices.
logically the DeviceLimits are the same for every LabAssignement in the same population.
So there are 2 different types of modules (a and b), and for the type a there are again 4 versions. Every different module/version the SpaceLimit in the Device increases.
How is it now possible to deliver this aDeviceLimit array for the First class back to the class_Initialize sub after the Unload Me of the Userform to work with it afterwards? The Calculation in The Userform is correct, but after unloading it, the array is empty again.
I hope you can help me.
Bookmarks