Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing an object using a variable for the object na
Message
 
 
À
16/08/2001 08:10:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00544237
Message ID:
00544655
Vues:
16
Linda,

I'm glad, you figured this out, but have you tried my suggestion? It looks like it should work, though I haven't tried it myself.

>In any case, folks, I figured it out. The only way I can get access the elements of an array that is a property of an object, when using a variable for the property reference is by using the macro designation; for some reason EVALUATE() returns only the first element of an array.
>
>The solution was to first:
>
>ACOPY(&loArray, laArray) && where loArray is a variable containing the character string for the object reference and laArray is the new array)
>
>I can then pass laArray by reference to a function:
>
>MYFUNCTION(@laArray)
>
>This is the only solution I know of that will pass the array elements to a function (rather than merely the first element).
>
>There are probably other ways of doing this...and I'd be interested in hearing about them. This is a basic reference issue which is pretty fundamental if you are going to be writing your own custom classes.
>
>Linda
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform