Hi everyone,
I tried to copy some rawdata into the clipboard using the code below.
[code] Dim c As New Clipboard
c.SetText mDate.SQLDateTime
Dim s As String = mDate.SQLDateTime
Dim mb As MemoryBlock
mb = s
c.AddRawData mb, “myclipdata”
c.Close
[/code]
this code is in the editcopy menu handler.
I want to copy the mDate as an sqldate in the clipboard
the text gets copied to the clipboard, but the rawdata gets only the data type entry in the clipboard, and zero data.
I used clipboardviewer to check that.
I also tried : c.AddRawData s, "myclipdata"
-> same result.
what did I do wrong ?
thanks.
Xojo 2017r3 - MacOS 10.11.6