Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing an Array Param
Message
De
14/06/1999 18:54:31
 
 
À
14/06/1999 16:32:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00229698
Message ID:
00229773
Vues:
17
>How Can I pass an array to a method and have that method return an array. When I try this:
>
>?myFunc(@This.MyArray, 'prop1')
>
>I get an: "Alias "THIS" not found"
>

You can't pass a property array by reference; either pass the object reference and resolve it inside the function, or copy the member array to a local array, pass the local array to the function by reference, and then move the result back using ACOPY()

>I thought I'd be tricky and use a macro sustitution but it didn't help. TIA
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform