Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More array passing...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00276579
Message ID:
00276599
Vues:
18
Hi Kile,

You can't return an array. You can either make it public like Jeff said or use an object to hold it.

From the method that calls the form.

oParam = newobject('custom')
oParam.AddProperty('aArray[ 1 ]')
*...Add some stuff to the array
Do Form MyForm with oParam

In MyForm add a property called MyParam (you add this on the fly if you want)
in the init of MyForm, catch the oParam object
lparameters oPar
thisform.oParam = oPar
*....Do stuff to the array

That's it. Since the array is local to the method that calls the form, it will still be there when MyForm has been destroyed. If you change the array in MyForm you are actually changing oParam.

hth
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform