Send variable value to clipboard

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
Paramvir
Posts: 38
Joined: Sun Mar 27, 2016 9:46 am
Location: India
Has thanked: 8 times
Been thanked: 4 times
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: 495
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF
Has thanked: 190 times
Been thanked: 79 times

Post by Anand »

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

Regards,

Anand
Image

Paramvir
Posts: 38
Joined: Sun Mar 27, 2016 9:46 am
Location: India
Has thanked: 8 times
Been thanked: 4 times
Contact:

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

User avatar
mol
Posts: 3359
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 256 times
Been thanked: 163 times
Contact:

Post by mol »

System.clipboard := xVariable

Paramvir
Posts: 38
Joined: Sun Mar 27, 2016 9:46 am
Location: India
Has thanked: 8 times
Been thanked: 4 times
Contact:

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