Posting data from memo

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
classic12
Posts: 21
Joined: Mon 20 Apr 2009 09:48

Posting data from memo

Post by classic12 » Thu 13 Nov 2014 14:24

Hi guys,

back in delphi land been away for a few years and my rusty brain can't remember some basic concepts.

I am using EX7 myDac 8.

I have a myQuery1 - BindSourceDB1 - Grid1 & memo1

If I change details in a row in the grid it automatically updates the MYSQL table.

How do I post the changed data from the memo field. i.e. if I move out of the memo it posts or on a button.

Sorry for the basic question.

Cheers

SteveW :mrgreen:

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Posting data from memo

Post by ViktorV » Fri 14 Nov 2014 09:23

To save data from TMemo, you should explicitly call TMyQuery.Post, since when the TMemo control is unfocused, TMyQuery.Post is not called. For more details about work with data control you can refer to the Embarcadero documentation.

Post Reply