Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing property arrays by reference
Message
De
19/07/2001 17:18:40
Del Despain
Colorado Plateau Associates
Hurricane, Utah, États-Unis
 
 
À
19/07/2001 13:01:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00532698
Message ID:
00532870
Vues:
11
>>How do you pass an array property by reference to a function (or can you)?
>>
>>For example, the following does not work:
>>
>> dothis(@oForm.aArray)
>>
>>
>>Thanks!
>>
>>Del
>
>You have to ACOPY() it out first.
>e.g.
>
>
>Dimension laPassThisArray(ALen(oForm.aArray,1), ALen(oForm.Array,2))
>ACopy(oForm.aArray, laPassThisArray)
>dothis(@laPassThisArray)
>You should add some sort of check for single dimension arrays vs. two dimensional arrays, but you get the idea.

That's what I was doing, but I thought maybe there was some direct way of doing it that I was missing.

Thanks!

Del
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform