Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing property arrays by reference
Message
De
19/07/2001 13:01:18
 
 
À
19/07/2001 12:44:46
Del Despain
Colorado Plateau Associates
Hurricane, Utah, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00532698
Message ID:
00532707
Vues:
13
>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.
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform