Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing an array from into a function
Message
De
13/05/2003 14:30:46
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
 
 
À
13/05/2003 14:25:42
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00787842
Message ID:
00787845
Vues:
13
Try something like:

DIMENSION aTemp(alen(oMine.aMyArray,1),alen(oMine.aMyArray,2))
ACOPY(oMine.aMyArray,aTemp)
MyFunc(@aTemp)

*-- If you change the array in MyFunc, copy it back into oMine.aMyArray
DIMENSION oMine.aMyArray(alen(aTemp,1),alen(aTemp,2))
ACOPY(aTemp,oMine.aMyArray)

Gary


>Hi,
>
>How can I pass an array property of a class into another function that is in a different .PRG File?
>
>oMine = Createobject("myClass")
>
>I want to call MyFunc like MyFunc(@oMine.aMyArray) . This gives me error.
>I can pass regular arrays with no problem.
>
>Is this feasible?
>
>
>Func MyFunc(tary)
>retu
>
>TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform