Connor Bell
Connor Bell

Reputation: 1

Why do <div> tags appear in FMX Memo Component when being populated from Microsoft Access Long Text Field?

For a school task, I need to display certain news articles about the climate in a Delphi FireMonkey Form. I have a Long Text field that contains the article's body in Microsoft Access.

When I try to populate a Memo component on my Delphi FMX form from the Access database, tags appear everywhere. (See Image). Is there anything I can do to fix this? Thanks.

Populated FMX Memo Component with the Article's body, showing  tags.

Long Text "Article_Body" field in Microsoft Access.

Upvotes: 0

Views: 84

Answers (1)

DelphiCoder
DelphiCoder

Reputation: 2007

The Long Text field(s) in your Access DB have a property called TextFormat which is obviously set to RichText. Change that (in Access) to PlainText, then you should also see the <div> tags in Access where you can delete them from the field content, so they don't appear in the Delphi app anymore.

Upvotes: 0

Related Questions