Hi!
You cannot return array from the VFP function. You can, however, pass the object and return the object. This object can contain the array as a property:
oo = CREATEOBJECT("Custom")
oo.AddProperty("MyArray(10,20)")
acopy(MyArrayResults,oo.MyArray)
return oo
In the calling procedure:
DO FORM ... TO RetObject
for i=1 to alen(RetObject.MyArray)
...
HTH.
>Hi everybody,
>
>I'm making a form which accepts an array as a parameter.In this form i'm working with this array and i would like to returnthis array to the calling program. Is there a way t do this without declaring the array public? I'm trying to return the array just as i pass i to the form.
>
>Any help and/or sample-code will help.
>
>T.I.A. Erwin
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.