2
votes
Vote UpVote

LiveBindings: FillList using enumerable objects

Jim Tierney – The previous post introduced a utility method called FillList and showed how to call it using BindScopeDB1 as the source component.  TBindScopeDB allows TBindList to work with a TDataSet. This post shows a version of FillList which can work with enumerable objects such at TStrings or TList<> (an object is enumerable if it implements GetEnumerator).   TBindScope is used instead of TBindScopeDB.   Here is a FillList method which can populate a list control from an enumerable object:  procedure FillList(AControl: TComponent; const AControlExpression: string; AEnumerableObject: TObject; ...
Favorite? Off-Topic? Jim Tierney @ 2011-10-14 21:59

Statistics

Visits: 588
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Daniele Teti
TObject
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)