CopyToClipboard()

Summary

Copies data to the Windows clipboard.

Changes

Added to Version 6.0/2012.

Syntax

CopyToClipboard(array data_array)

Argument Contents
data_array An options array with the data type ("Text") and the data

Notes

  • Currently only "Text" is supported as a data type.

  • To copy a table to the clipboard, use a long string, with a Tab character (or "\t") between columns and a carriage return character (or "\n") between lines.

Examples

CopyToClipboard({{"Text","A string to copy to the clipboard"}})
ShowArray(GetClipboardData("Text"))
CopyToClipboard({{"Text","Col1\tCol2\tCol3\n123\t345\t531"}})
ShowArray(GetClipboardData("Text",{{"Output Table", "True"}}))

See Also

Function Summary
GetClipboardData() Gets data from the Windows clipboard