Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Issue: Collection.Clear(), I don't find it.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01013756
Message ID:
01013925
Vues:
26
Fabio, I don't understand your response. Is that what YOUR help file says now, or what you would *like* the help file to say?

Additionally, I was only responding to Borislav's statement that the behavior was not described anywhere. I was NOT attempting to take any position regarding whether this behavior is correct, appropriate, or should be altered in future versions.

However, I will say this much: if I want to clear out a collection, I don't really give a rat's tail end HOW IT WORKS -- as long as it works. In the end, the collection is emptied -- ascending, descending, or otherwise.

>>>How Remove(-1) clear the collection Class is not described anywhere.
>>
>>This is incorrect.
>>
>>From the VFP help file, topic "Remove method (Collection class)":
>>(NOTE: Bold type has been added for clarification)
>>
>>Parameters
>>eIndex
>>
>>Specifies an expression that represents a position of an item in the collection. This expression can be one of two types:
>>Numeric. The eIndex expression must have a value from 1 to the value of the Count property for the collection. If you pass a value of -1, Visual FoxPro removes all items in the collection in descending index order.
>>String. The eIndex expression must correspond to the cKey that was specified for the item when it was added to the collection.
>>
>>If eIndex does not match an existing member of the collection, an error occurs.
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform