Please enable JavaScript to view this site.

Codolex

Navigation: Activities > Clipboard

Write to clipboard

Scroll Prev Top Next More

Write a value to the users clipboard with this activity

Uses Vcl.Clipbrd.TClipboard

 

WriteToClipboard

Both a string and image can be selected

 

begin

var ClipBoard := TClipBoard.Create;

try

   ClipBoard.Open;

   ClipBoard.AsText := StringVariable;

finally

   ClipBoard.Close;

   ClipBoard.Free;

end;

end;

Resulting code when string is selected

 

© by GDK Software