I need to copy the text that was selected in the UnidbGrid, through the option of a PopUp menu.
I am using the following code:
var
col: Integer;
TextCopy: string;
begin
col: = gridSenhasLiberadas.CurrCol;
Clipboard.AsText: = gridSeedLibrary.Columns.Items [col] .Field.AsString;
TextCopy: = Clipboard.AsText;
If I give a ShowMessage, I see the Clipboard, however I can not paste it anywhere else.
Apparently it's not on the clipboard.
How do I then get that dbGrid value and actually put it in the clipboard through a popup menu?