Send variable value to clipboard

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
Paramvir
Posts: 44
Joined: Sun Mar 27, 2016 9:46 am
Location: India
Contact:

Send variable value to clipboard

Post 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.
User avatar
Anand
Posts: 596
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF

Re: Send variable value to clipboard

Post by Anand »

Yes, check c:\MiniGUI\SAMPLES\BASIC\CLIPBOARD\ in Harbour MiniGUI Extended

Regards,

Anand
Regards,

Anand

Image
Paramvir
Posts: 44
Joined: Sun Mar 27, 2016 9:46 am
Location: India
Contact:

Re: Send variable value to clipboard

Post 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
Paramvir
Posts: 44
Joined: Sun Mar 27, 2016 9:46 am
Location: India
Contact:

Re: Send variable value to clipboard

Post 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)
*/
Post Reply