DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Copy to Clipboard in SUD Dialog?

Hi,
 
Is there a command that would allow coping text to the clipboard?  I am displaying some text in a SUD dialog edit box that I would like to give users the option of "copying to the clipboard."  They could also use "ctrl + c" but I was just thinking about it and couldn't find anything in the help.
 
Thank you!
Julia Moeller
Message 1 of 2
(3,233 Views)
Hello Julia!

I don't know a DIAdem command. But there is a nice solution wich will work in all scripts:

Dim oHTML

Set oHTML = CreateObject(
"htmlfile")

Call oHTML.ParentWindow.ClipboardData.SetData(
"text","Hello world!")


Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
Message 2 of 2
(3,229 Views)