Ver Mensaje Individual
  #6  
Antiguo 08-10-2006
Avatar de dec
dec dec is offline
Moderador
 
Registrado: dic 2004
Ubicación: Alcobendas, Madrid, España
Posts: 13.108
Reputación: 34
dec Tiene un aura espectaculardec Tiene un aura espectacular
Hola,

Bueno. Piensa que la descripción de la clase "TList" dice así:

Cita:
TList stores an array of pointers.
Ni más, ni menos. Bueno. En realidad esa es la descripción corta, la "larga" dice como sigue:

Cita:
TList, which stores an array of pointers, is often used to maintain lists of objects. TList introduces properties and methods to

- Add or delete the objects in the list.
- Rearrange the objects in the list.
- Locate and access objects in the list.
- Sort the objects in the list.
Vamos, que tampoco tiene mucho misterio, como suele decirse, me parece a mí...

De todos modos, parece que "TObjectList" pone la cosa todavía un poco más interesante:

Cita:
TObjectList maintains a list of (owned) objects.

Unit

Contnrs

Description

Use TObjectList to store and maintain a list of objects. TObjectList provides properties and methods to add, delete, rearrange, locate, access, and sort objects. If the OwnsObjects property is set to true (the default), TObjectList controls the memory of its objects, freeing an object when its index is reassigned; when it is removed from the list with the Delete, Remove, or Clear method; or when the TObjectList instance is itself destroyed.
__________________
David Esperalta
www.decsoftutils.com

Última edición por dec fecha: 08-10-2006 a las 04:41:39.
Responder Con Cita