How to displaying & in Labels and ListView

  

Writing a multi-platform phone directory app using FireMonkey in Delphi 10 Seattle

The data is stored in XML file.
The screen has a ListView showing peoples names and a detail tab showing the name, address, phone #s etc.

When the name: Doe, John & Jane
is displayed it is treated differently in the two components.

The ListView shows: Doe, John & Jane
The NameLabel shows: Doe, John Jane

If I escape the & in the XML: Doe, John && Jane

The ListView shows: Doe, John && Jane
The NameLabel shows: Doe, John & Jane

Is there a property I can set or code I can attach to an event on either component?

Comments are closed.