Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Collections
Message
From
28/07/2003 12:32:53
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00814153
Message ID:
00814174
Views:
19
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform