Clipboard.Copy (gb.qt4)

Static Sub Copy ( Data As Variant [ , Format As String ] )

Copies data into the clipboard.

Data can be a String or an Image.

If Data is a String, you can specify in Format the MIME type of the data. For example, "text/html".

Support for URIs

Since 3.18

If Format is "text/uri-list", then Data must be a string array of file paths that will be sent to the clipboard as an URI list.

Example

  Dim aPaths As New String[]

  aPaths.Add(User.Home &/ "File1.txt")
  aPaths.Add(User.Home &/ "File2.txt")
  aPaths.Add(User.Home &/ "File3.txt")

  Clipboard.Copy(aPaths, "text/uri-list")