Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing property by reference.
Message
 
À
28/07/1998 17:12:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00122119
Message ID:
00122145
Vues:
24
>I have setup a property on my form of type array. I want to pass this array to another program by reference. But there does not seem to be any way to do this.
>
>I have tried the following:
>
>cmdWorkOnArray(@thisform.MyArray)
>cmdWorkOnArray(@(thisform.MyArray))
>cmdWorkOnArray(thisform.@MyArray)
>cmdWorkOnArray(thisform.@(MyArray))
>
>Does anyone know the answer

Jeremy,

You cannot pass properties by reference. You can pass a reference to the fomr though;

cmdWorkOnArray(THISFORM,"MyArray")

in your cmdWorkOnArray you would


LPARAMETERS oForm,cArray

oForm.&cArray(1,1) = "ABC"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform