How to copy record from TMyQuery to Clipboard

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Hans
Posts: 52
Joined: Wed 24 Aug 2005 20:05

How to copy record from TMyQuery to Clipboard

Post by Hans » Fri 10 Feb 2006 09:59

Hi,

Does somebody know how to copy a record from TMyQuery to the clipboard?

best regards,
Hans

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Fri 10 Feb 2006 10:32

is there any special reason for this ?
you might use MySQL user variables or use temporary tables ?

Hans
Posts: 52
Joined: Wed 24 Aug 2005 20:05

Post by Hans » Fri 10 Feb 2006 10:49

Wel, I try to think of a way to copy/paste a record from a dbgrid. My approach was to copy the selected record to the clipboard and then paste it into the grid as a new record.

best regards,
Hans

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Fri 10 Feb 2006 14:09

MyDAC doesn't provide such functionality. You should get data from MyQuery.Fields.Fields[], and manually put it into the clipboard.

Post Reply