RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServerCollection.Items Property

Lists the TServerItem objects in the collection.

Pascal
property Items [Index: Integer]: TServerItem;
C++
__property TServerItem Items[int Index];

Use Items to access individual TServerItem objects maintained by TServerCollection.

Note: In Delphi, Items is the default property of TServerCollection, so the name of the Items property can be left off when using this property. Thus the line

TSimpleObjectBroker1.Servers.Items[I].Enabled := False;

can be written

TSimpleObjectBroker1.Servers[I].Enabled := False;

Note: In C++, Items can be accessed using the [] operator, to achieve an affect similar to the default property in Delphi.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!