Page 1 of 1
Send variable value to clipboard
Posted: Tue Jun 23, 2020 12:24 pm
by Paramvir
Hi
Is there any method or function in HMG to send the value or contents of a variable direct to Windows clipboard? Any suggestions will be appreciated.
Re: Send variable value to clipboard
Posted: Tue Jun 23, 2020 12:35 pm
by Anand
Yes, check c:\MiniGUI\SAMPLES\BASIC\CLIPBOARD\ in Harbour MiniGUI Extended
Regards,
Anand
Re: Send variable value to clipboard
Posted: Tue Jun 23, 2020 1:06 pm
by Paramvir
Anand wrote: ↑Tue Jun 23, 2020 12:35 pm
Yes, check c:\MiniGUI\SAMPLES\BASIC\CLIPBOARD\ in Harbour MiniGUI Extended
Regards,
Anand
Thank you Anand ji. I'll check.
Regards
Paramvir
Re: Send variable value to clipboard
Posted: Tue Jun 23, 2020 7:36 pm
by mol
System.clipboard := xVariable
Re: Send variable value to clipboard
Posted: Wed Jun 24, 2020 4:21 am
by Paramvir
mol wrote: ↑Tue Jun 23, 2020 7:36 pm
System.clipboard := xVariable
Thank you Mol for the help.
I also found these details in the HMG reference which may be of help to others:
/*
‘System’ object will allow to read and write (when possible) various operating system properties.
Current implementation allows to access (read and write) the system clipboard and various system properties(read only).
Syntax:
System.Clipboard
System.Clipboard := <cString>
System.EmptyClipboard
System.DesktopWidth
System.DesktopHeight
System.DefaultPrinter
System.DesktopFolder
System.MyDocumentsFolder
System.ProgramFilesFolder
System.SystemFolder
System.TempFolder
System.WindowsFolder
Samples:
System.Clipboard := 'a string'
<...>
MsgInfo(System.Clipboard)
<...>
MsgInfo(System.DesktopWidth)
<...>
MsgInfo(System.DesktopHeight)
<...>
MsgInfo(System.DefaultPrinter)
*/