Search code examples
delphifiremonkeylivebindings

How to concatenate 2 fields from a dataset using LiveBindings?


Is there a way to use the Live Binding Designer to concatenate 2 database fields to a component?

For example I have a MemTable for client, I want to concatenate the FirstName and LastName (fullname) to a label.

Live Binding Designer

If there is a way to do that, I understand that the binding will be in one direction only (Database fields --> ComponentProperty).


Solution

  • The easyest way to do with LiveBinding, is to use the CustomFormat property of the LinkFillControlToField :

    Just use this format text as the example is the question: Self.Owner.FirstName.text + " " + Self.Owner.LastName.text