Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays in Objects
Message
De
19/02/2002 08:55:36
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
19/02/2002 08:29:37
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00621830
Message ID:
00621854
Vues:
20
>>I've been trying to use the _arraylib in _utility and also the array handling object from the Feb Foxtalk (Kit Box) but I can't pass array properties to the methods by reference:
>>eg.
>>
>>oarraylib.insaitem(@otablestructure.acolumns,"test",1)
>>
>>I have for the time being had to subclass the arraylib and modify it to be able to change arrays that belong to it and use that as the subclass for any classes I anticipate having an array property.
>>
>>Am I being stupid?
>>
>>thanks in advance
>>Penda
>
>I think you can't pass array properties, as parameters. You either have to copy the entire array property to a (non-property) array (slow!), and pass that new array, or pass an object reference, so that the function / method modifies the object properties directly.
>
>Hilmar.

Hilmar,
it's not the array, you can't pass properties as parameters.

Properties are a little bit different to variables, even if it's wrapped to us.

Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform