I have 2 arrays of objects and I want to add one to the other. This seems simple enough but nothing seems to work. Here is what I am trying now.
Module[] StaticModules;
Module[] DynamicModules;
Info = Database.Devices[inx];
//Modules = Database.GetDeviceModules(Info);
StaticModules = Database.GetDeviceModules(Info);
DynamicModules = Database.GetDeviceModules(new int[] { 23, 24, 25, 26, 27, 28, 29, 30 });
Array.Resize(ref StaticModules, StaticModules.Length + DynamicModules.Length);
Array.Copy(StaticModules, DynamicModules, DynamicModules.Length);
Modules = StaticModules;
Everything seems ok until the copy which seems to take forever and doesn't appear to do a thing. At one point I had the watch window open and after the copy all my vars turned red and I saw a message that said I had to refresh because the last function timed out.
DynamicModulesvalues intoStaticModules, is that correct?List?