Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning arrays from a form
Message
From
23/05/2001 08:25:48
 
 
To
23/05/2001 08:08:44
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00510264
Message ID:
00510269
Views:
16
This message has been marked as the solution to the initial question of the thread.
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.com
ICQ #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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform