Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning arrays from a form
Message
 
 
À
23/05/2001 08:08:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00510264
Message ID:
00510269
Vues:
17
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform