Hello.
I'm sorry, but I have to say one more thing:
I check thoroughly every word I write in a public forum. But maybe I wasn't clear enough. And the first poster want a way to pass and receive multiple parameters. So, let's try to solve his problem...
Suppose that I have two forms, named Form1 and Form2. The second one is modal.
On the first form I have a command button. Here's the Click event code:
DIMENSION arrMatrice[1,3]
DO FORM FORM2 WITH arrMatrice TO arrMatrice[1,3]
In the Init Event of the second's form:
Parameters arrMatrice[1,3]
Thisform.arrMatrice[1,3] = arrMatrice[1,3] && I've created a property in the form
On the second form I have a command button. Here's the click event:
THISFORM.arrMatrice[1,1] = ThisForm.Text1.Value
THISFORM.arrMatrice[1,2] = ThisForm.Text2.Value
THISFORM.arrMatrice[1,3] = ThisForm.Text3.Value
* I have filled the array elements using some textboxes,
* but can be anything here
Thisform.release
In Unload Event of the second's form:
arrMatrice[1,1] = thisform.arrMatrice[1,1]
arrMatrice[1,2] = thisform.arrMatrice[1,2]
arrMatrice[1,3] = thisform.arrMatrice[1,3]
* Fill the array with the form's property values
return arrMatrice[1,3] && pass the array
And in the first form, after the line DO FORM ....
the values of the array are there.
I'm sorry for my incoherence, but my local time is 03:50, and I'm still working...
So, using this method, I can return a nearly unlimited
number of values to the first form. And after the release
of the first form, the array is released, also.
Hope I've made myself much clearer, this time,
Have all the best,
Grigore Dolghin
Class Software