Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Collections
Message
De
28/07/2003 12:32:53
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00814153
Message ID:
00814174
Vues:
20
>>How come I can't change a collections key value after the add. It would seem this would be a key feature of the collection object.
>>
>>
>>  lo_collection = NEWOBJECT('Collection')
>>  lo_Collection.Add('item','key')
>>  ? lo_collection.Item('key') && Prints 'item'
>>  lo_collection.Item('key') = "Newitem"
>>
>>this last line gives error message "Function argument value, type, or count is invalid." Is there a different way to change the collection key's value?
>
>Chuck,
>Once added, collection objects themselves are read-only.

That's what I was thinking but seems like a big feature missing from a collection class.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform