Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing class array properties to methods
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Passing class array properties to methods
Divers
Thread ID:
00332569
Message ID:
00332569
Vues:
42
Hi gang,

I have a custom class in which I've defined an array property. I now want to pass that array, BY REFERENCE, to a method in the same class which updates that array, similar to the following:

THIS.MyMethod( @THIS.MyArray )

Doesn't work -- neither does removing the @ sign (the parameter shows as .F. in the method).

This method MUST accept the name of another, non-property array as a parameter -- I can't assume automatic usage of THIS.MyArray in all cases. And, if I simply don't pass a parameter when I do want to use THIS.MyArray, then I don't have the array by reference -- or does that matter?

Any ideas would be greatly appreciated.

TIA,
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform