[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TStrings.Objects

Indexed access to the objects associated with the strings in the list.

Declaration

Source position: classesh.inc line 513

public property TStrings.Objects: TObject
  read GetObject
  write PutObject;

Description

Objectsprovides indexed access to the objects associated to the strings in the list. Indexis a zero-based index and must be in the range of 0to Count-1.

Setting the objectsproperty will not free the previously associated object, if there was one. The caller is repsonsible for freeing the object that was previously associated to the string.

TStringsdoes not implement any storage for objects. Reading the Objectsproperty will always return Nil, Setting the property will have no effect. It is the responsability of the descendent classes to provide storage for the associated objects.

Errors

If an Indexoutside the valid range is specified, an EStringListErrorexception will be raised.

See also

TStrings.Strings

  

Indexed access to teh strings in the list.

TStrings.IndexOfObject

  

Finds an object in the list and returns its index.

TStrings.Names

  

Name parts of the name-value pairs in the list.

TStrings.Values

  

Value parts of the name-value pairs in the list.