Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Collections
Message
From
28/07/2003 12:00:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Collections
Miscellaneous
Thread ID:
00814153
Message ID:
00814153
Views:
46
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?
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Next
Reply
Map
View

Click here to load this message in the networking platform