Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Arrays by reference
Message
De
21/12/2007 16:47:46
 
 
À
21/12/2007 16:42:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01277088
Message ID:
01277089
Vues:
20
You need to copy the array from the property to a regular array. Look at ACOPY().

>I've built a class, called risUtil, which houses a number of methods including aColScan. This method takes 3 parameters, namely an array to scan. It requires that the array be passed by reference.
>
>In trying to use the aColScan method from another class I can't figure out how to send the array by reference. I've defined the aTableStructures array as a property of the class.
>
>
>lnRow = This.RISUtil.aColScan( @This.aTableStructures, .F., TABLE_STRUCTS_NAME_COL )
>
>
>Using the "@" character to force passing by reference gives me the following run-time error:
>"Alias 'THIS' is not found."
>
>Hopefully there is a simple solution to my problem. Any and all help is greatly appreciated!
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform