do form myform with myarrayand then just update the array elements from the form methods, or pass to the form the reference to the object that contains the array. However, you cannot pass directly the object's array property by reference as properties are always passed by value.