Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating an item in the collection
Message
De
14/09/2007 16:39:21
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Updating an item in the collection
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01254449
Message ID:
01254449
Vues:
67
I have a VB.NET collection and I need to update an item in it. The collection contains an object item defined such as oFile(8). However, when I add a loFileItem entry in the oFile collection, I only have loFileItem(1) to loFileItem(7) defined. Then, later down the code, I can initialize loFileItem(8). However, that item is already present in the collection. I then need a way to update that item in the collection.

I tried:
oFile.Item(1)=loFileItem
However, it says that the Item property is read only.

How can I do this?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform