Popup Menu/Timer

Now that I have a particular heat preference window working I would like to revisit an item. This is in regards to passing by byRef a multidimensional array to another window. in my Window #one, I call window #two and pass byRef although I said noting about byRef, a multidimensional array. Window two now clones the byRef array, makes changes to the clone and when satisfied clones back to the byRef original array. Does this like about right or am I messing this up some.

in a module, I have a Class called ArrayHolderClass and in that class, I have a properties folder that holds many arrays. The one I wish to pass is called: Heating_Prefs_Array(2,1,6,4,5).

In my window one methods is the calling code:

First an instant of the ArrayHolderClass was made:

Inst_of_Arrays_Holder_Class = new ArrayHolderClass Inst_of_Arrays_Holder_Class.LoadDataArrays

Next, this method was called: Send_Array_To_Heating_Prefs_Window

var w as new Normal_Heating_Preference_Window(Inst_of_Arrays_Holder_Class) 

in the Normal_Heating_Preference_Window that opens a constructor is fired.

Constructors code:
The passed parameter is: Inst_of_Arrays_Holder_Class as ArrayHolderClass

[code]Var x,v,w,y,z as integer

xferedArrayWrapper = Inst_of_Arrays_Holder_Class

// Only a pointer
Pointer_to_Heating_Prefs_Original_Array = xferedArrayWrapper.Heating_Prefs_Array

// Clone Original Heating Prefs Array and use to make changes
for v = 0 to 2 ‘slider a/b and check box
for w = 0 to 1’ mode-economy/normal
for x = 0 to 6 Rem Day of week 'Slider A, Slider B, Checkbox, mod0 away, mode 1 away
for y = 0 to 4 'Area zones
for z = 0 to 5 'Periods + Away temps
Clone_of_Heating_Prefs_Original_Array(v,w,x,y,z) = xferedArrayWrapper.Heating_Prefs_Array(v,w,x,y,z)
next
next
next
next
next

// call the Window constructor, or Open events will not fire
Super.Window()[/code]