How is a text string put on the clipboard using "SetData"?
A simple one line code example would be appreciated.
Thanks in advance.
albertstc01
A simple one line code example would be appreciated.
Thanks in advance.
albertstc01
Agraham, Yesterday at 4:36 PMThe demo actually places some text data on the Clipboard in Sub bCopy_Click. Basically you just stick the object on the Clipboard and it works out what it is.
' The library works properly only when optimised compiled
' as the IDE cannot pass most things to the Object parameter of SetData
'GetDataPresent(sort As String) As Boolean : returns true if data of type 'sort' is on the clipboard - sort is case insensitive
'DllVersion : returns the version of the library
'GetData(sort As String) As Object : returns any data of type 'sort' on the clipboard - sort is case insensitive
'GetDataFormats As String() : returns an array of strings describing the sort of data on the clipboard
'SetData(thing As Object) : puts 'thing' on the clipboard