Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing an Array Param
Message
De
14/06/1999 16:39:54
 
 
À
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:
00229704
Vues:
17
You should pass the class object by parameter instead and have the method use the class property instead:

MyFunc(THIS) && Pass the object

MyFunc():
LPARAMETERS oClass
? oClass.MyArray[1]
oClass.MyArray[1] = "Test"

HTH

>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"
>
>I thought I'd be tricky and use a macro sustitution but it didn't help. TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform