>Try creating a modal form, with an array property, then, do form with myarray to myarray. You must have lparameters set in init to receive the array then set the form array property to the value of the parameter then in unload, return the form array property to myarray.
You have a problem - the array you pass initially is not going to persist in the modal form beyond it's Init, and the RETURN in the Unload of the modal form can only pass back a single object, not an array. This is why I recommended the use of a parameter object - it allows you to get around the persistance problem where you pass an array in at the Init, and allows passing of an object with arrays (or even multiple distinct properties) on termination from the Unload event. In this instance, he would not have to pass anything back; hew passes in a poarameter object on Init, saves the object reference in a Form property, updates the member array as needed, and on termination, the original object whose ref was passed in now contains the updated data. In fact, this can allow you to run the form non-modal; the object reference is visible to the called form for the form's lifetime.