# toClipboard(a)

Writes text to the system clipboard.

### Syntax

o_toClipboard(a)
  a: any text - description

### Usage

Use this to bypass the usual "cut" operation (CTRL-C) needed in order to get text into the system clipboard for pasting into another application.

### Location

menu: veeos ==> sys ==> toClipboard

library: sysLib

### Example

o_toClipboard("Hello World") places the string "Hello World" onto the clipboard. A subsequent "paste" operation in a text editor places "Hello World"

### Notes

Since any data type in VEE can be automatically converted to Text, this function can accept any data type. However since the conversion may not proceed with the formatting that you like it is suggested that you only input Text.

### Reference

Microsoft documents the underlying system call in their MSDN section.

### Dependencies

This uses a dotNet system call to System.Windows.Forms and as such it may not be fully portable.

### Supported On

VEE 7.0+, all platforms

### See Also

fromClipboard, printText

© 2015-2017. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 26 March 2017 13:39.