0
votes
Vote UpVote

LiveBindings: Code to create TBindLink and fill a Listbox

Jim Tierney – The previous post described how to configure TBindList in the designer.  This post describes how to use TBindList in code. Here is a method to fill a listbox using a TBindList component: procedure FillList(AControl: TComponent; const AControlExpression: string; ASource: TBaseBindScopeComponent; const ASourceExpression: string; const ASourceMemberName: string = ''); var LBindList: TBindList; begin LBindList := TBindList.Create(nil); try // Turn off auto properties. LBindList.AutoFill := False; LBindList.AutoActivate := False; LBindList.ControlComponent := AControl; ...
Favorite? Off-Topic? Jim Tierney @ 2011-10-03 23:33

Statistics

Visits: 425
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

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)